diff options
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index d1fab8474..c88ae1f98 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -20,7 +20,7 @@ #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) # define __user # define __kernel # define __iomem @@ -33,6 +33,10 @@ # define assert_spin_locked(foobar) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9) +#define __le32 __u32 +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7) static inline unsigned long msecs_to_jiffies(const unsigned int m) { @@ -75,6 +79,7 @@ static inline unsigned long msleep_interruptible(unsigned int msecs) return jiffies_to_msecs(timeout); } #endif + /* * Local variables: * c-basic-offset: 8 |