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 3bb5c63bc..e0d4abfe5 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -1,5 +1,5 @@ /* - * $Id: compat.h,v 1.33 2005/11/20 23:10:47 mkrufky Exp $ + * $Id: compat.h,v 1.34 2005/11/23 05:26:43 mkrufky Exp $ */ #ifndef _COMPAT_H @@ -10,6 +10,7 @@ #include <linux/version.h> #include <linux/utsname.h> #include <linux/sched.h> +#include <linux/device.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) # define minor(x) MINOR(x) @@ -254,6 +255,10 @@ static inline unsigned long vmalloc_to_pfn(void * vmalloc_addr) #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15) +# define class_device_create(a, b, c, d, e, f, g, h) class_device_create(a, c, d, e, f, g, h) +#endif + #endif /* * Local variables: |