Hello Thomas,
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
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.
If you want to use the kernel header file "videodev2.h" for user-space applications you have to change
> #include <linux/time.h> /* need struct timeval */ to > #ifdef __KERNEL__ > #include <linux/time.h> /* need struct timeval */ > #endif right at the top of "videodev2.h".
Thanks in advance Thomas
CU Michael.