summaryrefslogtreecommitdiff
path: root/mbone/vic-devel/patches/patch-grabber-v4l2.cpp
blob: 483c26e56f2916bd77faf54521c6c5959a659d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- video/grabber-v4l2.cpp.orig	2008-12-13 22:12:50.000000000 +0000
+++ video/grabber-v4l2.cpp	2008-12-13 22:14:26.000000000 +0000
@@ -34,7 +34,9 @@
 #include <string.h>
 #include <signal.h>
 #include <errno.h>
+#ifdef __Linux__
 #include <endian.h>
+#endif
 
 #include <sys/types.h>
 #include <sys/fcntl.h>
@@ -48,8 +50,12 @@
 
 extern "C"
 {
+#ifdef __NetBSD__
+#include <sys/videoio.h>
+#else
 #include <asm/types.h>
 #include <linux/videodev2.h>
+#endif
 }
 
 #ifdef HAVE_LIBV4L