summaryrefslogtreecommitdiff
path: root/compat/include/linux/compat-2.6.21.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/include/linux/compat-2.6.21.h')
-rw-r--r--compat/include/linux/compat-2.6.21.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/compat/include/linux/compat-2.6.21.h b/compat/include/linux/compat-2.6.21.h
new file mode 100644
index 00000000..89ed6d9a
--- /dev/null
+++ b/compat/include/linux/compat-2.6.21.h
@@ -0,0 +1,18 @@
+#ifndef LINUX_26_21_COMPAT_H
+#define LINUX_26_21_COMPAT_H
+
+#include <linux/version.h>
+
+/* Compat work for 2.6.21 */
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21))
+
+#include <linux/sysctl.h>
+
+#define register_sysctl_table(table) \
+ ({ \
+ register_sysctl_table((table), 0); \
+ })
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) */
+
+#endif /* LINUX_26_21_COMPAT_H */