summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;