diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h index dfe8897c2613..974e17393a74 100644 --- a/sys/sys/syslimits.h +++ b/sys/sys/syslimits.h @@ -43,7 +43,11 @@ * Do not add any new variables here. (See the comment at the end of * the file for why.) */ +#if defined(__arm__) || defined(__powerpc__) #define ARG_MAX 65536 /* max bytes for an exec function */ +#else +#define ARG_MAX 262144 /* max bytes for an exec function */ +#endif #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif