From 3d7e91caf95b8dc7e0d6a19cfa533a077624d164 Mon Sep 17 00:00:00 2001 From: Oliver Endriss Date: Sun, 25 Feb 2007 20:15:28 +0100 Subject: budget-ci: Fixed compilation error for kernel < 2.6.19 From: Oliver Endriss Fix compilation error introduced by changeset 6d08d71cbcfb. Signed-off-by: Oliver Endriss --- linux/drivers/media/dvb/ttpci/budget-ci.c | 9 --------- v4l/compat.h | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/linux/drivers/media/dvb/ttpci/budget-ci.c b/linux/drivers/media/dvb/ttpci/budget-ci.c index 6d1244cd1..0152eff90 100644 --- a/linux/drivers/media/dvb/ttpci/budget-ci.c +++ b/linux/drivers/media/dvb/ttpci/budget-ci.c @@ -100,17 +100,8 @@ struct budget_ci_ir { int rc5_device; u32 last_raw; u32 ir_key; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) bool have_command; }; -#else - int have_command; -}; -enum { - false = 0, - true = 1 -}; -#endif struct budget_ci { struct budget budget; diff --git a/v4l/compat.h b/v4l/compat.h index 2b2de93a7..c3745b4b1 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -357,6 +357,8 @@ usb_to_input_id(const struct usb_device *dev, struct input_id *id) # define PCIAGP_FAIL 0 #define vmalloc_32_user(a) vmalloc_32(a) + +typedef int bool; #endif #ifndef true -- cgit v1.2.3