aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/ChangeLog1
-rw-r--r--extension/gawkfts.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 1d85469d..6704ec30 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -4,6 +4,7 @@
Makefile for MirBSD, since the extensions can't be built on MirBSD.
* configure: Regenerated.
* Makefile.am (check-for-shared-lib-support): Update comment some.
+ * gawkfts.c (MAX): Provide for systems that don't (Solaris).
2013-03-04 Arnold D. Robbins <arnold@skeeve.com>
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 *);