projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- single KERNEL_VERSION(a,b,c) macro in platform.h
[oweals/busybox.git]
/
include
/
platform.h
diff --git
a/include/platform.h
b/include/platform.h
index 257ddb2607e49dcb8a4ea3ca97fec8fa494aa40c..6b3b3f78e582a6ccff54afdbe0857a15674e651c 100644
(file)
--- a/
include/platform.h
+++ b/
include/platform.h
@@
-91,6
+91,13
@@
# include <netinet/in.h>
#endif
# 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 */
/* ---- miscellaneous --------------------------------------- */
/* NLS stuff */
/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */