Hello,

the attached patch fixes compile issues on kernel 2.6.18 (Red Hat
Enterprise, CentOS).

Thanks,
Niels
Index: uvc_compat.h
===================================================================
--- uvc_compat.h	(revision 231)
+++ uvc_compat.h	(working copy)
@@ -257,7 +257,7 @@
 #include <linux/videodev.h>
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
 /*
  * usb_endpoint_* functions
  *
@@ -290,7 +290,9 @@
 {
 	return (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd));
 }
+#endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
 /*
  * USB auto suspend
  *
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to