Blame fish-1.23.0-ARG_MAX.patch

Tom Callaway 0fa300
diff -up fish-1.23.0/exec.c.BAD fish-1.23.0/exec.c
Tom Callaway 0fa300
--- fish-1.23.0/exec.c.BAD	2008-09-15 16:28:52.000000000 -0400
Tom Callaway 0fa300
+++ fish-1.23.0/exec.c	2008-09-15 16:29:56.000000000 -0400
Tom Callaway 0fa300
@@ -24,6 +24,14 @@
Tom Callaway 0fa300
 #include <dirent.h>
Tom Callaway 0fa300
 #include <time.h>
Tom Callaway 0fa300
 
Tom Callaway 0fa300
+#if defined(_SC_ARG_MAX)
Tom Callaway 0fa300
+# if defined(ARG_MAX)
Tom Callaway 0fa300
+#  undef ARG_MAX
Tom Callaway 0fa300
+# endif
Tom Callaway 0fa300
+# define ARG_MAX sysconf (_SC_ARG_MAX)
Tom Callaway 0fa300
+#endif
Tom Callaway 0fa300
+
Tom Callaway 0fa300
+
Tom Callaway 0fa300
 #ifdef HAVE_SIGINFO_H
Tom Callaway 0fa300
 #include <siginfo.h>
Tom Callaway 0fa300
 #endif