summaryrefslogtreecommitdiffstats
path: root/net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff
blob: 8f425db66ad5d9bcb1317ccb7b778edb407af6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -dPNur bsdftpd-ssl-1.0.2.orig/contrib/libbsdport/libc/gen/glob.c bsdftpd-ssl-1.0.2/contrib/libbsdport/libc/gen/glob.c
--- bsdftpd-ssl-1.0.2.orig/contrib/libbsdport/libc/gen/glob.c	2003-10-24 21:53:18.000000000 +0000
+++ bsdftpd-ssl-1.0.2/contrib/libbsdport/libc/gen/glob.c	2012-01-13 20:16:21.000000000 +0000
@@ -79,6 +79,13 @@
 #include <string.h>
 #include <unistd.h>
 
+#if defined(_SC_ARG_MAX)
+# if defined(ARG_MAX)
+#    undef ARG_MAX
+# endif
+# define ARG_MAX sysconf (_SC_ARG_MAX)
+#endif
+
 #include "collate.h"
 /* SKYNICK: from collate.c */
 int __collate_load_error = 1;