aboutsummaryrefslogtreecommitdiffstats
path: root/extension/gawkfts.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/gawkfts.c')
-rw-r--r--extension/gawkfts.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index 81803b88..4a712153 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -43,11 +43,11 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include <limits.h>
/* #include "namespace.h" */
-#ifndef ZOS_USS
+#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#else
#include <stdio.h>
-#endif /* ZOS_USS */
+#endif
#include <sys/stat.h>
#include <assert.h>
@@ -139,6 +139,10 @@ static int fts_safe_changedir(const FTS *, const FTSENT *, int,
#define _DIAGASSERT(expression)
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 1024 /* a guess */
+#endif
+
FTS *
fts_open(char * const *argv, int options,
int (*compar)(const FTSENT **, const FTSENT **))