summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-08-26 10:03:29 +0000
committerGerd Knorr <devnull@localhost>2004-08-26 10:03:29 +0000
commit3dd4be9cbde40b13a3f9e3c2f9ae7bacddd963f7 (patch)
tree0b954a37c7dd279aeb4ca0a36859bebbfd47b483 /v4l/compat.h
parentde920e6c4a904f0c6a11698706a60da0ea21813a (diff)
downloadmediapointer-dvb-s2-3dd4be9cbde40b13a3f9e3c2f9ae7bacddd963f7.tar.gz
mediapointer-dvb-s2-3dd4be9cbde40b13a3f9e3c2f9ae7bacddd963f7.tar.bz2
- add __user + __kernel #defines for older kernels.
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 0807b44c1..8c4db090c 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -15,6 +15,11 @@
# define I2C_CLASS_TV_ANALOG I2C_ADAP_CLASS_TV_ANALOG
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6)
+# define __user
+# define __kernel
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
static inline unsigned long msecs_to_jiffies(const unsigned int m)
{