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



--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to