libbb: fix compile failure if both ARG_MAX and _SC_ARG_MAX are defined

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2014-06-25 15:39:27 +02:00
parent ea23c25e96
commit 5aeae36e2b

View 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);