- single KERNEL_VERSION(a,b,c) macro in platform.h
[oweals/busybox.git] / include / platform.h
index 257ddb2607e49dcb8a4ea3ca97fec8fa494aa40c..6b3b3f78e582a6ccff54afdbe0857a15674e651c 100644 (file)
 # 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 */