summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v4l/ChangeLog6
-rw-r--r--v4l/compat.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index 4de7d3c48..4a1633d9e 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-12 23:47 nshmyrev
+ * compat.h:
+ - Fix build with kernel earlier than 2.6.9.
+
+ Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
2005-08-11 17:35 mkrufky
* bttv-cards.c:
- card #135, DVICO FusionHDTV 5 Lite:
diff --git a/v4l/compat.h b/v4l/compat.h
index 81eb75f7a..b6b646ebe 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -1,5 +1,5 @@
/*
- * $Id: compat.h,v 1.14 2005/07/15 20:37:50 mchehab Exp $
+ * $Id: compat.h,v 1.15 2005/08/12 19:56:03 nsh Exp $
*/
#ifndef _COMPAT_H
@@ -9,6 +9,7 @@
#include <linux/pm.h>
#include <linux/version.h>
#include <linux/utsname.h>
+#include <linux/sched.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18)
# define minor(x) MINOR(x)
@@ -90,6 +91,7 @@ static inline void msleep(unsigned int msecs)
}
}
#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9)
static inline unsigned long msleep_interruptible(unsigned int msecs)
{