diff options
author | Roland McGrath <roland@gnu.org> | 1994-01-06 17:03:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-01-06 17:03:17 +0000 |
commit | 55bc49778cba9004daef9753cd27b73b9d8ed6be (patch) | |
tree | 75ab7c19d2fe5436a798bfdeec7b42e9aff613ee /io | |
parent | 63e159937f76b693ad1120935575d7bf2aeba026 (diff) |
entered into RCS
Diffstat (limited to 'io')
-rw-r--r-- | io/ftw.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |