aboutsummaryrefslogtreecommitdiff
path: root/modules/image_io
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image_io')
-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>