← Commit list

5aeae36e2

Denys Vlasenko
Denys Vlasenko
2014-06-25
SUCCESS Duration: 143s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/sysconf.c+1 -1
@@ -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);