add sys/types.h to configure check for videodev.h
Adrian Harvey
ajharvey at myrealbox.com
Sat Jun 11 05:45:55 CDT 2005
videodev.h, requires sys/types.h to be included if sys/time.h is
otherwise it does not compile correctly (ulong undefined) and the
configure check fails even though it is present.
(tests done on on Fedora Core 3 x86_64 edition)
Patch is against latest CVS, and I have included the autoconf generated
changes to configure as well.
--- configure.ac.orig 2005-06-11 22:26:00.000000000 +1200
+++ configure.ac 2005-06-11 22:27:36.000000000 +1200
@@ -1227,6 +1227,9 @@
[#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_ASM_TYPES_H
#include <asm/types.h>
#endif])
--- configure.orig 2005-06-11 22:27:52.000000000 +1200
+++ configure 2005-06-11 22:28:32.000000000 +1200
@@ -16821,6 +16821,9 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_ASM_TYPES_H
#include <asm/types.h>
#endif
More information about the wine-patches
mailing list