diff --git a/fts.c b/fts.c index 6285855..f86b322 100644 --- a/fts.c +++ b/fts.c @@ -37,6 +37,8 @@ __RCSID("$NetBSD: fts.c,v 1.48 2015/01/29 15:55:21 manu Exp $"); #endif #endif /* LIBC_SCCS and not lint */ +#include "config.h" + #include #include @@ -50,6 +52,10 @@ __RCSID("$NetBSD: fts.c,v 1.48 2015/01/29 15:55:21 manu Exp $"); #include #include +#if !defined(HAVE_DECL_MAX) || (HAVE_DECL_MAX==0) +#define MAX(a,b) ((a)>(b)?(a):(b)) +#endif + static FTSENT *fts_alloc(FTS *, const char *, size_t); static FTSENT *fts_build(FTS *, int); static void fts_free(FTSENT *);