diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-27 16:20:59 -0800 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-02-27 16:20:59 -0800 |
commit | 0e856055f505320ad16b590b1b9b1ca5341064ab (patch) | |
tree | 44224295756d2589ae7c06507e617d999bda44f9 /v4l/compat.h | |
parent | 65d34a47bbbceb1cc5aea2fa56c9da3d4bb05a8d (diff) | |
download | mediapointer-dvb-s2-0e856055f505320ad16b590b1b9b1ca5341064ab.tar.gz mediapointer-dvb-s2-0e856055f505320ad16b590b1b9b1ca5341064ab.tar.bz2 |
compat: fix test for true already being defined
From: Trent Piepho <xyzzy@speakeasy.org>
The #ifndef true test didn't work, as true is an enum, not a macro.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index c3745b4b1..c92eedc4e 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -358,10 +358,11 @@ usb_to_input_id(const struct usb_device *dev, struct input_id *id) #define vmalloc_32_user(a) vmalloc_32(a) -typedef int bool; #endif -#ifndef true +/* bool type and enum-based definition of true and false was added in 2.6.19 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) +typedef int bool; #define true 1 #define false 0 #endif |