summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 257ddb2..6b3b3f7 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -91,6 +91,13 @@
# include <netinet/in.h>
#endif
+/*----- Kernel versioning ------------------------------------*/
+#ifdef __linux__
+#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#else
+#error implement KERNEL_VERSION for your platform
+#endif
+
/* ---- miscellaneous --------------------------------------- */
/* NLS stuff */
/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */