From 66bdbb2c4fd4d078e0497e4643e20ecd3eab6622 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 19 Jul 2007 18:06:54 -0300 Subject: Fix compatibility with kernels older than 2.6.22 From: Mauro Carvalho Chehab Thanks to Michael Krufky for pointing this issue. Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v4l/compat.h b/v4l/compat.h index 89ca51748..ed6605687 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -5,6 +5,10 @@ #ifndef _COMPAT_H #define _COMPAT_H +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) +# define set_freezable() +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) # define minor(x) MINOR(x) #endif -- cgit v1.2.3