$NetBSD: patch-bktr,v 1.5 2011/01/17 16:51:05 drochner Exp $

--- libavdevice/bktr.c.orig	2010-03-31 08:30:55.000000000 +0900
+++ libavdevice/bktr.c	2011-01-05 16:58:47.000000000 +0900
@@ -24,8 +24,12 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/* u_short, u_int */
 #define _BSD_SOURCE 1
-#define _NETBSD_SOURCE
+ #define _BSD_SOURCE 1
+#ifdef __NetBSD__
+# define _NETBSD_SOURCE 1
+#endif
 
 #include "libavformat/avformat.h"
 #if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H
