Add files from parent branch HEAD:
[pkgsrcv2.git] / graphics / unicap / patches / patch-al
1 $NetBSD$
2
3
4 --- cpi/v4l2/uvc_compat.h.orig  2008-09-08 23:16:59.000000000 -0400
5 +++ cpi/v4l2/uvc_compat.h       2008-09-08 23:18:15.000000000 -0400
6 @@ -1,7 +1,12 @@
7  #ifndef _UVC_COMPAT_H
8  #define _UVC_COMPAT_H
9  
10 +#ifdef __linux__
11  #include <linux/version.h>
12 +#elif defined(__NetBSD__)
13 +#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
14 +#define LINUX_VERSION_CODE KERNEL_VERSION(2,6,17)
15 +#endif
16  
17  #ifndef __KERNEL__
18  #ifndef __user