From 994a922c1d18880debfc51d785aa1a78c8db73fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 5 Oct 2011 10:04:06 +0000 Subject: use libv4l if available svn path=/trunk/externals/pdp/; revision=15511 --- modules/image_io/pdp_v4l.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 #include #include -#include + +#ifdef HAVE_LIBV4L1_VIDEODEV_H +# include +#elif defined HAVE_LINUX_VIDEODEV_H +# include +#else +# error cannot compile pdp_v4l without new kernel and without libv4l-dev +#endif + #include #include #include -- cgit v1.2.1