aboutsummaryrefslogtreecommitdiffstats
path: root/include/compat/linux/compat-2.6.18.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/linux/compat-2.6.18.h')
-rwxr-xr-xinclude/compat/linux/compat-2.6.18.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/compat/linux/compat-2.6.18.h b/include/compat/linux/compat-2.6.18.h
new file mode 100755
index 0000000..5e0182b
--- /dev/null
+++ b/include/compat/linux/compat-2.6.18.h
@@ -0,0 +1,13 @@
+#ifndef LINUX_26_18_COMPAT_H
+#define LINUX_26_18_COMPAT_H
+
+#include <linux/version.h>
+
+/* Compat work for 2.6.18 */
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
+
+#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) */
+
+#endif /* LINUX_26_18_COMPAT_H */