summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index b00e8eaf3..207cd3033 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -5,6 +5,14 @@
#ifndef _COMPAT_H
#define _COMPAT_H
+/* In v2.6.19-rc6-118-g52bad64 struct work_struct was was changed to be only for
+ * non-delayed work and struct delayed_work was created for delayed work. This
+ * will rename the structures. Hopefully no one will decide to name something
+ * delayed_work in the same context as something named work_struct. */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
+#define delayed_work work_struct
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24)
#define KERN_CONT ""
#endif