summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/patches/patch-v4l2
blob: b7a6ef3aade981a0559e1e816321b3d6561ee545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-v4l2,v 1.1 2008/09/07 23:39:38 ahoka Exp $

--- libavdevice/v4l2.c.orig	2008-07-15 22:45:42.000000000 +0200
+++ libavdevice/v4l2.c
@@ -34,8 +34,13 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/time.h>
-#include <asm/types.h>
-#include <linux/videodev2.h>
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+# include <sys/types.h>
+# include <sys/videoio.h>
+#else
+# include <asm/types.h>
+# include <linux/videodev2.h>
+#endif
 #include <time.h>
 
 static const int desired_video_buffers = 256;