summaryrefslogtreecommitdiff
path: root/compat/include/linux/compat-2.6.21.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2013-03-29 19:57:47 +0100
committerJohannes Berg <johannes@sipsolutions.net>2013-03-29 19:57:47 +0100
commit0da76ef8674d0b04cf23dae2c98ed1625f7f64ac (patch)
tree629eb290efc529fce5199fd9cf9d8ab288f26bba /compat/include/linux/compat-2.6.21.h
parent65b712fb77725109127316441ebf270dfe433893 (diff)
parent8ecb0c8fc0b982baafc3e9ec339fe60321879936 (diff)
Merge compat code
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 */