summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core/compat.h')
-rw-r--r--linux/drivers/media/dvb/dvb-core/compat.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/compat.h b/linux/drivers/media/dvb/dvb-core/compat.h
new file mode 100644
index 000000000..25af8145b
--- /dev/null
+++ b/linux/drivers/media/dvb/dvb-core/compat.h
@@ -0,0 +1,24 @@
+#ifndef __CRAP_H
+#define __CRAP_H
+
+/**
+ * compatibility crap for old kernels. No guarantee for a working driver
+ * even when everything compiles.
+ */
+
+
+#include <linux/module.h>
+#include <linux/list.h>
+
+#ifndef MODULE_LICENSE
+#define MODULE_LICENSE(x)
+#endif
+
+#ifndef list_for_each_safe
+#define list_for_each_safe(pos, n, head) \
+ for (pos = (head)->next, n = pos->next; pos != (head); \
+ pos = n, n = pos->next)
+#endif
+
+#endif
+