summaryrefslogtreecommitdiff
blob: 9db1cb241e7b630f33b78636856f5569a896018c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fix building with newer glibc

http://bugs.gentoo.org/227923

--- a/pretrace.h
+++ b/pretrace.h
@@ -20,3 +20,8 @@
 #include <sys/time.h>
 # define RANDOMIZE(x) { struct timeval tv; gettimeofday(&tv, NULL); x = tv.tv_usec; }
 #endif
+
+#include <unistd.h>
+#ifndef ARG_MAX
+# define ARG_MAX sysconf(_SC_ARG_MAX)
+#endif