From f6fe1935082d9dc1c6f923e80f62c9e9c90d1169 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Wed, 24 Feb 2010 23:57:04 +0000 Subject: Fix up V4L/V4L2 for non-Linux. --- src/input/Makefile.am | 5 ++++- src/input/input_v4l2.c | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src') 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 #include #include -#include +#ifdef HAVE_SYS_VIDEOIO_H +# include +#elif defined(HAVE_SYS_VIDEODEV2_H) +# include +#else +# include +#endif #include #include #include -- cgit v1.2.3