diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/kernel_version.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c index 5f5d36df2..310da2fa0 100644 --- a/libbb/kernel_version.c +++ b/libbb/kernel_version.c | |||
@@ -26,11 +26,12 @@ | |||
26 | 26 | ||
27 | #include "libbb.h" | 27 | #include "libbb.h" |
28 | 28 | ||
29 | /* Returns kernel version encoded as major*65536 + minor*256 + patch, | 29 | /* Returns current kernel version encoded as major*65536 + minor*256 + patch, |
30 | * so, for example, to check if the kernel is greater than 2.2.11: | 30 | * so, for example, to check if the kernel is greater than 2.2.11: |
31 | * if (get_kernel_revision() <= 2*65536+2*256+11) { <stuff> } | 31 | * |
32 | * if (get_linux_version_code() > KERNEL_VERSION(2,2,11)) { <stuff> } | ||
32 | */ | 33 | */ |
33 | int get_kernel_revision(void) | 34 | int get_linux_version_code(void) |
34 | { | 35 | { |
35 | struct utsname name; | 36 | struct utsname name; |
36 | char *s; | 37 | char *s; |