summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2006-10-16 22:09:32 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2006-10-16 22:09:32 +0000
commiteebe97a3fe85f26ec95ad237a327ed02a2a2bfb2 (patch)
tree6389b988ae54e7d7ad1606842d860cc287b3b4c3 /src
parent7fc7640140629acc747df852e8e6a3de7aa153ab (diff)
downloadxine-lib-eebe97a3fe85f26ec95ad237a327ed02a2a2bfb2.tar.gz
xine-lib-eebe97a3fe85f26ec95ad237a327ed02a2a2bfb2.tar.bz2
Compile v4l on FreeBSD with v4l_compat package.
CVS patchset: 8343 CVS date: 2006/10/16 22:09:32
Diffstat (limited to 'src')
-rw-r--r--src/input/videodev2.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/input/videodev2.h b/src/input/videodev2.h
index 4d8fc0abf..ac5a689ee 100644
--- a/src/input/videodev2.h
+++ b/src/input/videodev2.h
@@ -14,7 +14,23 @@
* et al.
*/
#include <sys/time.h> /* need struct timeval */
-#include <asm/types.h>
+#ifdef HAVE_ASM_TYPES_H
+# include <asm/types.h>
+#else
+# include <inttypes.h>
+# ifndef __u8
+# define __u8 uint8_t
+# endif
+# ifndef __u32
+# define __u32 uint32_t
+# endif
+# ifndef __u64
+# define __u64 uint64_t
+# endif
+# ifndef __s32
+# define __s32 int32_t
+# endif
+#endif
#ifdef __ICC
/* __u64 will be undefined for icc, so we handle it here */