time.h, included from videodev2.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

when compiling a small V4L2 c-program I get the errors

In file included from /usr/include/linux/videodev2.h:17,
                 from videograb.c:6:
/usr/include/linux/time.h:9: redefinition of `struct timespec'
/usr/include/linux/time.h:17: redefinition of `struct timeval'
make: *** [videograb] Error 1

Config:
--------
Card: Bt878 (Pinnacle Studio PCTV)
Driver: bttv-0.9.8
Kernel version: 2.4.20 with patches from March 21, 2003.

The program include directives are as follows:

#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/videodev2.h>

Can anyone hint towards a solution? The time.h definitions apart from timespec and timeval seem important, so time.h is needed for other reasons than those.

Thanks in advance

Thomas





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux