$NetBSD: patch-ab,v 1.3 2014/08/08 21:28:06 wiz Exp $

--- configure.orig	2014-07-19 13:47:10.000000000 +0000
+++ configure
@@ -23734,6 +23734,9 @@ main ()
 #error GCC before 3.4 has critical bugs compiling inline assembly
 #endif
 #endif
+#ifdef __SUNPRO_C
+#error Sun Studio cannot handle assembly in this package
+#endif
 __asm__ (""::)
   ;
   return 0;
@@ -29705,6 +29708,8 @@ int
 main ()
 {
 return 0;
+#elif defined(__NetBSD__)
+#include <sys/videoio.h>
   ;
   return 0;
 }
@@ -29780,6 +29785,8 @@ else
    USE_GST_V4L2=yes
 fi
 
+#elif defined(__NetBSD__)
+#include <sys/videoio.h>
 if test "x$NOUSE" = "xyes"; then
   USE_GST_V4L2="no"
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** video4linux2 pre-configured not to be built" >&5
