config check for videodev.h

Adrian Harvey ajharvey at
Wed Jun 8 05:35:01 CDT 2005

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

--- 2005-06-08 21:56:04.000000000 +1200
+++        2005-06-08 21:56:42.000000000 +1200
@@ -1226,6 +1226,7 @@
 [#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#include <sys/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!


More information about the wine-devel mailing list