diff options
Diffstat (limited to 'include/compat/linux/compat-2.6.21.h')
-rwxr-xr-x | include/compat/linux/compat-2.6.21.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/compat/linux/compat-2.6.21.h b/include/compat/linux/compat-2.6.21.h new file mode 100755 index 0000000..89ed6d9 --- /dev/null +++ b/include/compat/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 */ |