aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-19 11:54:02 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-19 11:54:02 +0000
commit7e57aa9ef910d543aef7eae372df8a629e4c9aab (patch)
tree0f9eb8281fac2f87c79a888dac49b27a1965b366 /include/platform.h
parent78bb3493dbe53579445a4b2947a1286479308ac0 (diff)
downloadbusybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.tar.gz
busybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.tar.bz2
busybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.zip
- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 257ddb260..6b3b3f78e 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -91,6 +91,13 @@
91# include <netinet/in.h> 91# include <netinet/in.h>
92#endif 92#endif
93 93
94/*----- Kernel versioning ------------------------------------*/
95#ifdef __linux__
96#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
97#else
98#error implement KERNEL_VERSION for your platform
99#endif
100
94/* ---- miscellaneous --------------------------------------- */ 101/* ---- miscellaneous --------------------------------------- */
95/* NLS stuff */ 102/* NLS stuff */
96/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ 103/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */