$NetBSD: patch-aa,v 1.4 2012/04/18 17:47:22 hans Exp $ --- include/libv4lconvert.h.orig 2008-09-08 14:33:17.000000000 -0400 +++ include/libv4lconvert.h 2008-09-08 14:34:03.000000000 -0400 @@ -22,10 +22,20 @@ /* These headers are not needed by us, but by linux/videodev2.h, which is broken on some systems and doesn't include them itself :( */ #include +#ifdef __linux__ #include #include /* end broken header workaround includes */ #include +#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__sun) +#include +#include +#if defined(__sun) +#include +#else +#include +#endif +#endif #ifdef __cplusplus extern "C" {