summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches/patch-v4l2
blob: 9aae2acd958040b5474affae72748331f7c7ff27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-v4l2,v 1.3 2010/06/20 15:58:06 wiz Exp $

http://trac.videolan.org/vlc/ticket/3761

--- modules/access/v4l2.c.orig	2009-05-22 01:06:04.000000000 +0200
+++ modules/access/v4l2.c
@@ -48,7 +48,13 @@
 #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>