tags 218438 + patch thanks Hi!
This patch makes linux/videodev2.h usable from userland again. It mimicks the way the input layer (linux/input.h) handles the problem of linux/time.h vs. sys/time.h. I've tested the patch by compiling libdv. (Note that there is no library abstracting the video4linux kernel interface, meaning that any v4l application has to refer to this header. Therefore, I'd prefer to provide a userspace-clean kernel header, rather than working around this problem in each and every application.) Patch was diffed against 2.5.999-test7-bk-9. Regards, Daniel. ---[snip]--- --- linux/videodev2.h.orig 2003-10-15 17:13:17.000000000 +0200 +++ linux/videodev2.h 2003-12-12 18:25:35.000000000 +0100 @@ -13,7 +13,11 @@ * Justin Schoeman * et al. */ +#ifdef __KERNEL__ #include <linux/time.h> /* need struct timeval */ +#else +#include <sys/time.h> +#endif /* * M I S C E L L A N E O U S ---[snap]--- -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux antares 2.4.22 #2 SMP Fri Dec 5 17:52:26 CET 2003 i686 Locale: LANG=C, LC_CTYPE=de_DE -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

