From: Robert Schwebel Subject: [patch] ARG_MAX undefined in newer glibcs When building with newer glibc versions >= 2.8, we get this error: glob.c: In function 'ftpglob': glob.c:118: error: 'ARG_MAX' undeclared (first use in this function) Use the solution suggested here: http://www.nabble.com/FYI:--glibc-2.8-may-break-some-of-your-packages-td16625128.html Signed-off-by: Robert Schwebel --- ftp/glob.c | 9 +++++++++ 1 file changed, 9 insertions(+) Index: netkit-ftp-0.17/ftp/glob.c =================================================================== --- netkit-ftp-0.17.orig/ftp/glob.c +++ netkit-ftp-0.17/ftp/glob.c @@ -51,9 +51,18 @@ char glob_rcsid[] = #include #include +#include + #include "ftp_var.h" /* for protos only */ #include "glob.h" +#if defined(_SC_ARG_MAX) +# if defined(ARG_MAX) +# undef ARG_MAX +# endif +# define ARG_MAX sysconf (_SC_ARG_MAX) +#endif + #define QUOTE 0200 #define TRIM 0177 #define eq(a,b) (strcmp(a, b)==0)