summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-10-24 08:44:03 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-24 08:44:03 -0200
commitec60228e845ea89c0f4e3e5b2a0d7f3ce832f182 (patch)
tree18c9228fdf49124f3998a8d707dfee65a57d4011 /v4l/compat.h
parent33b3d5674be358c590d4608cbf57101fbfa25632 (diff)
downloadmediapointer-dvb-s2-ec60228e845ea89c0f4e3e5b2a0d7f3ce832f182.tar.gz
mediapointer-dvb-s2-ec60228e845ea89c0f4e3e5b2a0d7f3ce832f182.tar.bz2
Fix compilation with RHEL 5.2 kernel
From: Mauro Carvalho Chehab <mchehab@redhat.com> RHEL 5 already declares bool. Still, there are some warnings that probably indicate that something else needs to be done for the code to work with RHEL5. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index f3dfceafe..7325e15c4 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -55,7 +55,9 @@
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
#define PCIAGP_FAIL 0
#define vmalloc_32_user(a) vmalloc_32(a)
+#endif
+#ifdef NEED_BOOL_TYPE
/* bool type and enum-based definition of true and false was added in 2.6.19 */
typedef int bool;
#define true 1