From 95d7aea2f14caa63e65d2bab792626f8a90194b4 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 18 Apr 2008 19:29:12 -0300 Subject: Fix building with kernel 2.6.25 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Mauro Carvalho Chehab Thanks to Dâniel Fraga for pointing this issue CC: Dâniel Fraga Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index ea7d49acf..78d6c1d75 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -533,6 +533,8 @@ do { \ le16_to_cpu(get_unaligned((unsigned short *)(a))) #define put_unaligned_le16(r, a) \ put_unaligned(cpu_to_le16(r), ((unsigned short *)(a))) +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) #ifdef CONFIG_PROC_FS static inline struct proc_dir_entry *proc_create(const char *a, mode_t b, struct proc_dir_entry *c, const struct file_operations *d) -- cgit v1.2.3