27 lines
654 B
Diff
27 lines
654 B
Diff
Index: ftp/glob.c
|
|
===================================================================
|
|
--- ftp/glob.c.orig 1999-10-02 15:25:23.000000000 +0200
|
|
+++ ftp/glob.c 2008-04-11 00:27:09.000000000 +0200
|
|
@@ -50,7 +50,7 @@ char glob_rcsid[] =
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
-
|
|
+#include <unistd.h>
|
|
#include "ftp_var.h" /* for protos only */
|
|
#include "glob.h"
|
|
|
|
@@ -60,6 +60,12 @@ char glob_rcsid[] =
|
|
#define GAVSIZ (ARG_MAX/6)
|
|
#define isdir(d) ((d.st_mode & S_IFMT) == S_IFDIR)
|
|
|
|
+#ifndef ARG_MAX
|
|
+ #ifdef _SC_ARG_MAX
|
|
+ #define ARG_MAX sysconf(_SC_ARG_MAX)
|
|
+ #endif
|
|
+#endif
|
|
+
|
|
const char *globerr;
|
|
extern const char *home;
|
|
|