From 3dd4be9cbde40b13a3f9e3c2f9ae7bacddd963f7 Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Thu, 26 Aug 2004 10:03:29 +0000 Subject: - add __user + __kernel #defines for older kernels. --- v4l/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index 0807b44c1..8c4db090c 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -15,6 +15,11 @@ # define I2C_CLASS_TV_ANALOG I2C_ADAP_CLASS_TV_ANALOG #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6) +# define __user +# define __kernel +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7) static inline unsigned long msecs_to_jiffies(const unsigned int m) { -- cgit v1.2.3