aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-10-05 10:04:06 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-10-05 10:04:06 +0000
commit994a922c1d18880debfc51d785aa1a78c8db73fc (patch)
treedc228ae63486c9e26a04417d298982ea7d143d98
parent186c6c33f5975c6180dce7836ecf52c3104df430 (diff)
use libv4l if available
svn path=/trunk/externals/pdp/; revision=15511
-rw-r--r--modules/image_io/pdp_v4l.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/image_io/pdp_v4l.c b/modules/image_io/pdp_v4l.c
index d54ee76..d8d5e26 100644
--- a/modules/image_io/pdp_v4l.c
+++ b/modules/image_io/pdp_v4l.c
@@ -35,7 +35,15 @@
#include <sys/types.h>
#include <sys/time.h>
#include <linux/types.h>
-#include <linux/videodev.h>
+
+#ifdef HAVE_LIBV4L1_VIDEODEV_H
+# include <libv4l1-videodev.h>
+#elif defined HAVE_LINUX_VIDEODEV_H
+# include <linux/videodev.h>
+#else
+# error cannot compile pdp_v4l without new kernel and without libv4l-dev
+#endif
+
#include <sys/mman.h>
#include <sched.h>
#include <pthread.h>