aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-06-25 15:39:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2014-06-25 15:39:27 +0200
commit5aeae36e2b8bcee19c8eb189f55b19febaab4c42 (patch)
tree80c672e7c172cac73f9011fdc6a028d0d7b783e2
parentea23c25e96f74d2e248f790b20e15f18ff91beba (diff)
downloadbusybox-w32-5aeae36e2b8bcee19c8eb189f55b19febaab4c42.tar.gz
busybox-w32-5aeae36e2b8bcee19c8eb189f55b19febaab4c42.tar.bz2
busybox-w32-5aeae36e2b8bcee19c8eb189f55b19febaab4c42.zip
libbb: fix compile failure if both ARG_MAX and _SC_ARG_MAX are defined
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/sysconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/sysconf.c b/libbb/sysconf.c
index 4dbffbebd..031901980 100644
--- a/libbb/sysconf.c
+++ b/libbb/sysconf.c
@@ -8,7 +8,7 @@
8 */ 8 */
9#include "libbb.h" 9#include "libbb.h"
10 10
11#if defined _SC_ARG_MAX 11#if !defined(ARG_MAX) && defined(_SC_ARG_MAX)
12unsigned FAST_FUNC bb_arg_max(void) 12unsigned FAST_FUNC bb_arg_max(void)
13{ 13{
14 return sysconf(_SC_ARG_MAX); 14 return sysconf(_SC_ARG_MAX);