pkgsrc/graphics/unicap/patches/patch-al
jmcneill ab26aff16f Update unicap to 0.9.3.
0.9.3:
- optionally use libv4l to support more cameras
- fix installation directory of plugins for x64 systems
- fix scaling of ogg/theora video
- use categories for v4l2 properties

0.9.2:
- Severall small bug fixes and improvements ( see ChangeLog )
- The EeePC packages got updated
2009-01-08 01:08:37 +00:00

18 lines
459 B
Text

$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 <linux/version.h>
+#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