Module Name:    othersrc
Committed By:   lukem
Date:           Tue Jan  5 09:08:29 UTC 2010

Modified Files:
        othersrc/usr.bin/tnftp/libnetbsd: glob.c

Log Message:
If ARG_MAX isn't defined, use the result from sysconf(_SC_ARG_MAX).
Based on pkgsrc/net/tnftp.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 othersrc/usr.bin/tnftp/libnetbsd/glob.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/usr.bin/tnftp/libnetbsd/glob.c
diff -u othersrc/usr.bin/tnftp/libnetbsd/glob.c:1.7 othersrc/usr.bin/tnftp/libnetbsd/glob.c:1.8
--- othersrc/usr.bin/tnftp/libnetbsd/glob.c:1.7	Mon Jul 23 11:45:51 2007
+++ othersrc/usr.bin/tnftp/libnetbsd/glob.c	Tue Jan  5 09:08:29 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: glob.c,v 1.7 2007/07/23 11:45:51 lukem Exp $ */
+/* $NetBSD: glob.c,v 1.8 2010/01/05 09:08:29 lukem Exp $ */
 /* from	NetBSD: glob.c,v 1.16 2006/03/26 18:11:22 christos Exp */
 
 /*
@@ -57,6 +57,10 @@
 
 #include "tnftp.h"
 
+#if !defined(ARG_MAX)
+#define ARG_MAX sysconf(_SC_ARG_MAX)
+#endif
+
 #undef	TILDE			/* XXX: AIX 4.1.5 has this in <sys/ioctl.h> */
 
 #define	DOLLAR		'$'

Reply via email to