Bug#518858: tnftp: FTBFS: 'ARG_MAX' undeclared
On Sun, Apr 05, 2009 at 04:13:29AM +0100, peter green wrote:
>I took this as a hint, read the sysconf manpage and replaced "ARG_MAX"
>with "sysconf(_SC_ARG_MAX)" in libnetbsd/glob.c . This made the package
>build sucessfully (I have not tested if it works though)
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> */
Reply to: