$NetBSD: patch-va,v 1.1 2008/09/09 01:11:53 jmcneill Exp $

--- libavformat/v4l2.c.orig	2008-09-08 20:54:25.000000000 -0400
+++ libavformat/v4l2.c	2008-09-08 20:54:53.000000000 -0400
@@ -32,8 +32,13 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/time.h>
+#ifdef __linux__
 #include <asm/types.h>
 #include <linux/videodev2.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/videoio.h>
+#endif
 #include <time.h>
 
 static const int desired_video_buffers = 256;
