diff options
author | Mike Frysinger | 2013-03-12 11:13:22 -0400 |
---|---|---|
committer | Mike Frysinger | 2013-03-12 11:13:22 -0400 |
commit | 445e7543e80d629173d96a77fbfe228fe795cb88 (patch) | |
tree | 8cff682c57f9767dd77bcca26f48a750be99bb2a /coreutils | |
parent | bca5c556c43ced7b368fdd90a24e4aecf40045ac (diff) | |
download | busybox-445e7543e80d629173d96a77fbfe228fe795cb88.zip busybox-445e7543e80d629173d96a77fbfe228fe795cb88.tar.gz |
platform: use KERNEL_VERSION to simplify uClibc version checking
This makes reading the logic (as well as adding new code) a lot simpler,
and fixes one or two cases that were broken due to incorrect sub-version
tests.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/id.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 1f20b75..1f3e1c4 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -64,12 +64,10 @@ /* This is a NOEXEC applet. Be very careful! */ #if !ENABLE_USE_BB_PWD_GRP -#if defined(__UCLIBC_MAJOR__) && (__UCLIBC_MAJOR__ == 0) -#if (__UCLIBC_MINOR__ < 9) || (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ < 30) +#if defined(__UCLIBC__) && UCLIBC_VERSION < KERNEL_VERSION(0, 9, 30) #error "Sorry, you need at least uClibc version 0.9.30 for id applet to build" #endif #endif -#endif enum { PRINT_REAL = (1 << 0), |