$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;
