summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-12-10 01:43:25 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-12-10 01:43:25 +0000
commitf925c632b4f136d1d154174041f6b322149e3682 (patch)
tree2e3f52ce73a9ca78c5bb7a606e4a2885963f7659 /v4l/compat.h
parentac63d03ba48d965f169ed2595ecc2ad7b8694e95 (diff)
downloadmediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.gz
mediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.bz2
make tree to compile against kernel 2.5.31
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 85f179da3..67fc48824 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1,5 +1,5 @@
/*
- * $Id: compat.h,v 1.41 2005/12/08 16:06:52 mkrufky Exp $
+ * $Id: compat.h,v 1.42 2005/12/10 01:43:26 mchehab Exp $
*/
#ifndef _COMPAT_H
@@ -10,7 +10,6 @@
#include <linux/version.h>
#include <linux/utsname.h>
#include <linux/sched.h>
-#include <linux/device.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
# define minor(x) MINOR(x)
@@ -21,6 +20,8 @@
# define need_resched() (current->need_resched)
#define work_struct tq_struct
+#else
+#include <linux/device.h>
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19)