On Sun, Apr 05, 2009 at 04:27:27PM +1000, Anibal Monsalve Salazar wrote:
>grep "ARG_MAX" /usr/include/linux/limits.h
>#define ARG_MAX       131072    /* # bytes of args + environ for exec() */
>
>Why not just insert:
>
>#include <sys/syslimits.h>
>
>to libnetbsd/glob.c?
>
>--- a/libnetbsd/glob.c 2007-07-23 21:45:51.000000000 +1000
>+++ b/libnetbsd/glob.c 2009-04-05 16:24:59.000000000 +1000
>@@ -55,6 +55,7 @@
>  *    Number of matches in the current invocation of glob.
>  */
> 
>+#include <sys/syslimits.h>
> #include "tnftp.h"
> 
> #undef        TILDE                   /* XXX: AIX 4.1.5 has this in 
> <sys/ioctl.h> */

Disregard the message above which is wrong.

I'll test the following patch based on peter green's suggestion.

--- tnftp-20070806.orig/libnetbsd/glob.c
+++ tnftp-20070806/libnetbsd/glob.c
@@ -57,6 +57,10 @@
 
 #include "tnftp.h"
 
+#ifndef ARG_MAX
+#define        ARG_MAX         _SC_ARG_MAX
+#endif
+
 #undef TILDE                   /* XXX: AIX 4.1.5 has this in <sys/ioctl.h> */
 
 #define        DOLLAR          '$'



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to