aboutsummaryrefslogtreecommitdiff
path: root/libbb/sysconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/sysconf.c')
-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 @@
*/
#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);