summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input/Makefile.am5
-rw-r--r--src/input/input_v4l2.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/src/input/Makefile.am b/src/input/Makefile.am
index 1c34f9aaa..beb101f8c 100644
--- a/src/input/Makefile.am
+++ b/src/input/Makefile.am
@@ -21,10 +21,13 @@ endif
if HAVE_V4L
in_v4l = xineplug_inp_v4l.la
-in_v4l2 = xineplug_inp_v4l2.la
in_pvr = xineplug_inp_pvr.la
endif
+if HAVE_V4L2
+in_v4l2 = xineplug_inp_v4l2.la
+endif
+
if HAVE_GNOME_VFS
in_gnome_vfs = xineplug_inp_gnome_vfs.la
endif
diff --git a/src/input/input_v4l2.c b/src/input/input_v4l2.c
index 255b1f17c..5396594f4 100644
--- a/src/input/input_v4l2.c
+++ b/src/input/input_v4l2.c
@@ -37,7 +37,13 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <linux/videodev2.h>
+#ifdef HAVE_SYS_VIDEOIO_H
+# include <sys/videoio.h>
+#elif defined(HAVE_SYS_VIDEODEV2_H)
+# include <sys/videodev2.h>
+#else
+# include <linux/videodev2.h>
+#endif
#include <sys/mman.h>
#include <stdio.h>
#include <errno.h>