]> git.sesse.net Git - vlc/commitdiff
V4L2 on NetBSD
authorAdam Hoka <ahoka@netbsd.org>
Sun, 20 Jun 2010 17:13:13 +0000 (20:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 20 Jun 2010 17:13:27 +0000 (20:13 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac
modules/access/v4l2.c

index 0887370ad8ade3306340020b1be1b16163303c53..c9d80746e55c08f351fcfa833562754e0769c818 100644 (file)
@@ -2164,7 +2164,7 @@ then
   fi
 
   CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_v4l2}"
-  AC_CHECK_HEADERS(linux/videodev2.h, [
+  AC_CHECK_HEADERS(linux/videodev2.h sys/videoio.h, [
     VLC_ADD_PLUGIN([v4l2])
   ],[])
   CPPFLAGS="${CPPFLAGS_save}"
index 452d29e50e1cfb441b8b1992613005b4c83b3faf..6412f5640044fc88115c2ef1a0f573c44d766a01 100644 (file)
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-#include <linux/videodev2.h>
+#if defined(HAVE_LINUX_VIDEODEV2_H)
+#   include <linux/videodev2.h>
+#elif defined(HAVE_SYS_VIDEOIO_H)
+#   include <sys/videoio.h>
+#else
+#   error "No Video4Linux2 headers found."
+#endif
 
 #include <poll.h>