diff options
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 02927cd..461c28f 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); extern unsigned long bb_baud_to_value(speed_t speed); extern speed_t bb_value_to_baud(unsigned long value); -extern int get_kernel_revision(void); +extern int get_linux_version_code(void); extern int get_console_fd(void); extern struct mntent *find_mount_point(const char *name, const char *table); 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 */ |