summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--doc/README.freebsd8
-rw-r--r--src/input/videodev2.h18
3 files changed, 25 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8071e881b..53a332ab4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -583,6 +583,7 @@ AC_ARG_ENABLE([v4l],
if test "x$enable_v4l" != "xno"; then
AC_CHECK_HEADERS([linux/videodev.h], [have_v4l=yes], [have_v4l=no])
+ AC_CHECK_HEADERS([asm/types.h])
if test "x$enable_v4l" = "xyes" && test "x$have_v4l" = "xno"; then
AC_MSG_ERROR([Video4Linux support requested, but prerequisite headers not found.])
fi
diff --git a/doc/README.freebsd b/doc/README.freebsd
index fa2746231..7ef1918b4 100644
--- a/doc/README.freebsd
+++ b/doc/README.freebsd
@@ -101,10 +101,16 @@ the file you have to patch is /sys/dev/ata/atapi-cd.c:
else
ccb[0] = ATAPI_WRITE_BIG;
+
+v4l on freebsd
+--------------
+
+For building v4l plugins you will need install v4l_compat package.
+
------------------------------------------------------------------------
---
version of this file:
- $Id: README.freebsd,v 1.6 2003/01/05 13:11:53 guenter Exp $
+ $Id: README.freebsd,v 1.7 2006/10/16 22:09:32 valtri Exp $
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 */