aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.h
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-10-15 21:39:36 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-10-15 21:39:36 +1000
commit36e08dc49e2d18d2a42143d01a3ad333fe02065a (patch)
tree3a0b7432d5865bde3608a9800a62bff63b189cd8 /fallback.h
parentdd02e96712eadbf9c5117ad4dabdbedac03eb314 (diff)
Make the maximum execve size test use sysconf. Create a fallback if sysconf is unavailable.
darcs-hash:20071015113936-75c98-078e9f8727e91d41fabc80827bf97c8e04dd97ba.gz
Diffstat (limited to 'fallback.h')
-rw-r--r--fallback.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fallback.h b/fallback.h
index e6f8e341..8f628977 100644
--- a/fallback.h
+++ b/fallback.h
@@ -435,4 +435,11 @@ int getopt_long(int argc,
#endif
+#ifndef HAVE_SYSCONF
+
+#define _SC_ARG_MAX 1
+long sysconf(int name);
+
+#endif
+
#endif