diff options
Diffstat (limited to 'patches/netkit-ftp-0.17/netkit-ftp-0.17-glibc28.diff')
-rw-r--r-- | patches/netkit-ftp-0.17/netkit-ftp-0.17-glibc28.diff | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/patches/netkit-ftp-0.17/netkit-ftp-0.17-glibc28.diff b/patches/netkit-ftp-0.17/netkit-ftp-0.17-glibc28.diff new file mode 100644 index 000000000..9b3bf7a2a --- /dev/null +++ b/patches/netkit-ftp-0.17/netkit-ftp-0.17-glibc28.diff @@ -0,0 +1,40 @@ +From: Robert Schwebel <r.schwebel@pengutronix.de> +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 <r.schwebel@pengutronix.de> + +--- + 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 <stdlib.h> + #include <string.h> + ++#include <unistd.h> ++ + #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) |