libbb: fix compile failure if both ARG_MAX and _SC_ARG_MAX are defined
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Jun 2014 13:39:27 +0000 (15:39 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Jun 2014 13:39:27 +0000 (15:39 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/sysconf.c

index 4dbffbebdd1472499aa7546338fe88fb4dc8b81e..031901980337dc65ad22e9195ffbdd0b19fca987 100644 (file)
@@ -8,7 +8,7 @@
  */
 #include "libbb.h"
 
-#if defined _SC_ARG_MAX
+#if !defined(ARG_MAX) && defined(_SC_ARG_MAX)
 unsigned FAST_FUNC bb_arg_max(void)
 {
        return sysconf(_SC_ARG_MAX);