From 2c2545da4d6f060cd6b64c71469a61cd455ba6d9 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 11 Nov 2008 17:43:40 +0100 Subject: uvcvideo: Enable compilation on kernels older than 2.6.22 From: Laurent Pinchart The uvcvideo driver makes use of the usb_endpoint_* functions as well as the list_first_entry and uninitialized_var macros. Add them to v4l/compat.h and update the driver with kernel version-based conditional compilation sections. Priority: normal Signed-off-by: Laurent Pinchart --- linux/drivers/media/video/uvc/uvc_ctrl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/drivers/media/video/uvc/uvc_ctrl.c') diff --git a/linux/drivers/media/video/uvc/uvc_ctrl.c b/linux/drivers/media/video/uvc/uvc_ctrl.c index f16aafe9c..9de8a1db5 100644 --- a/linux/drivers/media/video/uvc/uvc_ctrl.c +++ b/linux/drivers/media/video/uvc/uvc_ctrl.c @@ -15,7 +15,9 @@ #include #include #include +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 17) #include +#endif #include #include #include -- cgit v1.2.3