summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-01-06 17:03:17 +0000
committerRoland McGrath <roland@gnu.org>1994-01-06 17:03:17 +0000
commit55bc49778cba9004daef9753cd27b73b9d8ed6be (patch)
tree75ab7c19d2fe5436a798bfdeec7b42e9aff613ee /io
parent63e159937f76b693ad1120935575d7bf2aeba026 (diff)
entered into RCS
Diffstat (limited to 'io')
-rw-r--r--io/ftw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/io/ftw.c b/io/ftw.c
index ae31a8ba68..c6eec76227 100644
--- a/io/ftw.c
+++ b/io/ftw.c
@@ -28,6 +28,11 @@ Cambridge, MA 02139, USA. */
#include <ftw.h>
+#ifndef PATH_MAX
+#define PATH_MAX 1024 /* XXX */
+#endif
+
+
/* Traverse one level of a directory tree. */
static int
@@ -154,9 +159,6 @@ DEFUN(ftw, (dir, func, descriptors),
{
DIR **dirs;
size_t len;
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* XXX */
-#endif
char buf[PATH_MAX + 1];
struct stat s;
int flag, ret;