summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-19 11:54:02 +0000
committerBernhard Reutner-Fischer2006-05-19 11:54:02 +0000
commite2e56c7c4129de7d20df42e8239fd304c81ef29b (patch)
tree0f9eb8281fac2f87c79a888dac49b27a1965b366 /include/platform.h
parente3c150bc67cb158ee854ffb498f0066c79cd842c (diff)
downloadbusybox-e2e56c7c4129de7d20df42e8239fd304c81ef29b.zip
busybox-e2e56c7c4129de7d20df42e8239fd304c81ef29b.tar.gz
- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
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 */