summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/syslimits.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h
index dfe8897..974e173 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
OpenPOWER on IntegriCloud