$NetBSD: patch-al,v 1.2 2009/01/08 01:08:37 jmcneill Exp $ --- cpi/v4l2cpi/uvc_compat.h.orig 2008-06-12 11:25:05.000000000 -0400 +++ cpi/v4l2cpi/uvc_compat.h @@ -1,7 +1,12 @@ #ifndef _UVC_COMPAT_H #define _UVC_COMPAT_H +#ifdef __linux__ #include +#elif defined(__NetBSD__) +#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#define LINUX_VERSION_CODE KERNEL_VERSION(2,6,17) +#endif #ifndef __KERNEL__ #ifndef __user