(resend, now with linux-uvc-devel...) Okay, my mistake. Please review the attached patch.
Thanks, Niels On Thu, Jul 17, 2008 at 11:04 PM, Laurent Pinchart <[EMAIL PROTECTED]> wrote: > On Thursday 17 July 2008, Niels de Vos wrote: >> Hello, >> >> the attached patch fixes compile issues on kernel 2.6.18 (Red Hat >> Enterprise, CentOS). > > But it breaks compilation on non-Red Hat 2.6.18 kernels. Red Hat ships lots of > backported patches with its kernels. In this case the fault is on Red Hat's > side. > > Best regards, > > Laurent Pinchart >
Index: uvc_compat.h =================================================================== --- uvc_compat.h (revision 232) +++ uvc_compat.h (working copy) @@ -263,6 +263,9 @@ * * Included in Linux 2.6.19 */ + +/* Red Hat Enterprise Linux 5.2 contains heavy backports, make an excepion */ +#if !defined(RHEL_RELEASE_CODE) || RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(5,2) static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) { return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); @@ -290,6 +293,7 @@ { return (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd)); } +#endif /* RHEL_RELEASE_CODE */ /* * USB auto suspend
_______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel