Fix building with linux-headers >= 3.9

This commit is contained in:
markd 2016-07-16 04:35:13 +00:00
parent 8137c6f8b1
commit f6966a9d00
2 changed files with 21 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.40 2015/11/03 23:54:25 agc Exp $
$NetBSD: distinfo,v 1.41 2016/07/16 04:35:13 markd Exp $
SHA1 (gst-plugins-good-0.10.31.tar.bz2) = b45fc01b133fc23617fa501dd9307a90f467b396
RMD160 (gst-plugins-good-0.10.31.tar.bz2) = d9fed957ba26d055f7bccb9079bd43faae15b7e5
@ -9,3 +9,4 @@ SHA1 (patch-ba) = 0f2cc16c39f8bc2a4854ec928b7c0b60d0559eb5
SHA1 (patch-bb) = b71b740e106b5fc932cc50a7994e491da27909be
SHA1 (patch-gst_goom_mmx.h) = b940bfcd0599fa83fbe574ca9059c7f626d23663
SHA1 (patch-sys_v4l2_gstv4l2object.c) = d0ca0f9f001e6719c64eda0a2eff40ed7da68b65
SHA1 (patch-sys_v4l2_v4l2_calls.c) = 4eb5d965a821c6b9e7a6ae84f86b256eb7e56e4c

View file

@ -0,0 +1,19 @@
$NetBSD: patch-sys_v4l2_v4l2_calls.c,v 1.1 2016/07/16 04:35:13 markd Exp $
Fix building with linux-headers >= 3.9
--- sys/v4l2/v4l2_calls.c.orig 2014-06-23 03:18:47.384343480 +0000
+++ sys/v4l2/v4l2_calls.c
@@ -294,8 +294,12 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l
break;
case V4L2_CID_HFLIP:
case V4L2_CID_VFLIP:
+#ifndef V4L2_CID_PAN_RESET
case V4L2_CID_HCENTER:
+#endif
+#ifndef V4L2_CID_TILT_RESET
case V4L2_CID_VCENTER:
+#endif
#ifdef V4L2_CID_PAN_RESET
case V4L2_CID_PAN_RESET:
#endif