diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-19 11:54:02 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-19 11:54:02 +0000 |
commit | e2e56c7c4129de7d20df42e8239fd304c81ef29b (patch) | |
tree | 0f9eb8281fac2f87c79a888dac49b27a1965b366 /include | |
parent | e3c150bc67cb158ee854ffb498f0066c79cd842c (diff) | |
download | busybox-w32-e2e56c7c4129de7d20df42e8239fd304c81ef29b.tar.gz busybox-w32-e2e56c7c4129de7d20df42e8239fd304c81ef29b.tar.bz2 busybox-w32-e2e56c7c4129de7d20df42e8239fd304c81ef29b.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
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | include/platform.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 02927cd77..461c28fcb 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -120,7 +120,7 @@ extern long bb_xgetlarg(const char *arg, int base, long lower, long upper); | |||
120 | extern unsigned long bb_baud_to_value(speed_t speed); | 120 | extern unsigned long bb_baud_to_value(speed_t speed); |
121 | extern speed_t bb_value_to_baud(unsigned long value); | 121 | extern speed_t bb_value_to_baud(unsigned long value); |
122 | 122 | ||
123 | extern int get_kernel_revision(void); | 123 | extern int get_linux_version_code(void); |
124 | 124 | ||
125 | extern int get_console_fd(void); | 125 | extern int get_console_fd(void); |
126 | extern struct mntent *find_mount_point(const char *name, const char *table); | 126 | extern struct mntent *find_mount_point(const char *name, const char *table); |
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 */ |