summaryrefslogtreecommitdiff
path: root/graphics/libv4l/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libv4l/patches/patch-aa')
-rw-r--r--graphics/libv4l/patches/patch-aa10
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/libv4l/patches/patch-aa b/graphics/libv4l/patches/patch-aa
index 71feccf30df..ff836db6c6c 100644
--- a/graphics/libv4l/patches/patch-aa
+++ b/graphics/libv4l/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.3 2010/12/27 04:58:10 obache Exp $
+$NetBSD: patch-aa,v 1.4 2012/04/18 17:47:22 hans Exp $
--- include/libv4lconvert.h.orig 2008-09-08 14:33:17.000000000 -0400
+++ include/libv4lconvert.h 2008-09-08 14:34:03.000000000 -0400
-@@ -22,10 +22,16 @@
+@@ -22,10 +22,20 @@
/* These headers are not needed by us, but by linux/videodev2.h,
which is broken on some systems and doesn't include them itself :( */
#include <sys/time.h>
@@ -11,11 +11,15 @@ $NetBSD: patch-aa,v 1.3 2010/12/27 04:58:10 obache Exp $
#include <linux/ioctl.h>
/* end broken header workaround includes */
#include <linux/videodev2.h>
-+#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun)
+#include <sys/types.h>
+#include <sys/ioctl.h>
++#if defined(__sun)
++#include <sys/videodev2.h>
++#else
+#include <sys/videoio.h>
+#endif
++#endif
#ifdef __cplusplus
extern "C" {