summaryrefslogtreecommitdiffstats
path: root/net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff')
-rw-r--r--net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff b/net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff
new file mode 100644
index 0000000..8f425db
--- /dev/null
+++ b/net-ftp/bsdftpd-ssl/files/bsdftpd-ds-argmax.diff
@@ -0,0 +1,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;