summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-01-06 06:38:59 +0000
committerRoland McGrath <roland@gnu.org>1994-01-06 06:38:59 +0000
commit2de080d736106f934a19f9451f821d8f936a7079 (patch)
tree89f6be147e75f13c1bf9052988da88628e406e3e /io
parentaaffa363604762b84570a2c69e8b23d3e2519b1f (diff)
Formerly io/ftw.c.~2~
Diffstat (limited to 'io')
-rw-r--r--io/ftw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io/ftw.c b/io/ftw.c
index 19a73213de..ae31a8ba68 100644
--- a/io/ftw.c
+++ b/io/ftw.c
@@ -154,6 +154,9 @@ 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;