Package: vlc / 2.0.3-5+deb7u2

v4l-kfreebsd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix v4l2 build failure on kfreebsd.
Author: Benjamin Drung <bdrung@debian.org>
Bug-Debian: http://bugs.debian.org/660935
Bug: https://trac.videolan.org/vlc/ticket/6289

--- a/modules/access/v4l2/v4l2.h
+++ b/modules/access/v4l2/v4l2.h
@@ -39,6 +39,10 @@
 #  define V4L2_CTRL_TYPE_BITMASK 8
 # endif
 #endif
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+/* FreeBSD 10 and earlier does not have V4L2_CTRL_TYPE_BITMASK */
+# define V4L2_CTRL_TYPE_BITMASK 8
+#endif
 #ifndef V4L2_CID_ILLUMINATORS_1 /* 2.6.37 */
 # define V4L2_CID_ILLUMINATORS_1 (V4L2_CID_BASE+38)
 # define V4L2_CID_ILLUMINATORS_2 (V4L2_CID_BASE+37)