diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-03-20 22:30:37 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-03-20 22:30:37 +0200 |
commit | a156fcf57a3739e9589163a3641058586bab244e (patch) | |
tree | 9142709e256ab7b72dc8ac7f21216f55b976419a /extension/gawkfts.c | |
parent | 13b8d9034b58c51e06c05c70fe89a34ad1c7dcd9 (diff) | |
download | egawk-a156fcf57a3739e9589163a3641058586bab244e.tar.gz egawk-a156fcf57a3739e9589163a3641058586bab244e.tar.bz2 egawk-a156fcf57a3739e9589163a3641058586bab244e.zip |
Further portability fixes in extensions, tests.
Diffstat (limited to 'extension/gawkfts.c')
-rw-r--r-- | extension/gawkfts.c | 11 |
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 *); |