- single KERNEL_VERSION(a,b,c) macro in platform.h

- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
This commit is contained in:
Bernhard Reutner-Fischer
2006-05-19 11:54:02 +00:00
parent e3c150bc67
commit e2e56c7c41
8 changed files with 27 additions and 21 deletions

View File

@ -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);

View File

@ -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 */