aboutsummaryrefslogtreecommitdiff
path: root/coreutils/id.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-03-12 11:13:22 -0400
committerMike Frysinger <vapier@gentoo.org>2013-03-12 11:13:22 -0400
commit445e7543e80d629173d96a77fbfe228fe795cb88 (patch)
tree8cff682c57f9767dd77bcca26f48a750be99bb2a /coreutils/id.c
parentbca5c556c43ced7b368fdd90a24e4aecf40045ac (diff)
downloadbusybox-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/id.c')
-rw-r--r--coreutils/id.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/id.c b/coreutils/id.c
index 1f20b755e..1f3e1c4c2 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),