aboutsummaryrefslogtreecommitdiffstats
path: root/extension/gawkfts.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/gawkfts.c')
-rw-r--r--extension/gawkfts.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index 250b13c0..734dd7f7 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -71,6 +71,17 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#endif
*/
+#ifndef MAX
+static int MAX(int x, int y)
+{
+ if (x > y)
+ return x;
+
+ return y;
+}
+#endif
+
+
static FTSENT *fts_alloc(FTS *, const char *, size_t);
static FTSENT *fts_build(FTS *, int);
static void fts_free(FTSENT *);