I have been trying to test out the new webcam support with MSN, and have been having some trouble getting it to work. I have traced my problems back to an error in configure failing to compile the test for videodev.h, and therefore thinking that I have no v4l support.
/usr/include/linux/videodev.h:55: error: syntax error before "ulong" /usr/include/linux/videodev.h:71: error: syntax error before '}' token
The following patch fixes it for me, but I have little knowledge of autoconf, so I'm not sure if I've done the right thing? sys/time.h includes bits/types.h, and bits/types.h says it should not be included directly - and to use sys/types.h
--- configure.ac.080605 2005-06-08 21:56:04.000000000 +1200 +++ configure.ac 2005-06-08 21:56:42.000000000 +1200 @@ -1226,6 +1226,7 @@ AC_CHECK_HEADERS(linux/videodev.h,,, [#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#include <sys/types.h> #endif #ifdef HAVE_ASM_TYPES_H #include <asm/types.h>
The webcam support is truly amazing BTW - I never expected something like that to work so well in wine!
Cheers, Adrian
I don't think that would be appropriate, as systems that have sys/time.h may not always have sys/types.h .. I think probably
#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif
and of course you gotta have the lines to define HVE_SYS_TYPES_H
If you don't know autoconf very well, just look for where all of the #defines are, and see how its checking for sys/time.h, and copy/paste that for sys/types.h ..
Of course I could be going about this all wrong as I'm not one of the developers. Just my $0.02.
Dustin