summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 2b2de93a7..c92eedc4e 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -357,9 +357,12 @@ 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)
+
#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