diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-02-11 20:57:47 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-02-11 20:57:47 +0200 |
commit | 4d8fd72d6cdd54aec2881ef5ecb17cad0e595f99 (patch) | |
tree | e167b86935c88820aee45d80230440a241323694 /extension/fnmatch.c | |
parent | 0c0982740c0afda6ec893e6fcd361533033331f4 (diff) | |
download | egawk-4d8fd72d6cdd54aec2881ef5ecb17cad0e595f99.tar.gz egawk-4d8fd72d6cdd54aec2881ef5ecb17cad0e595f99.tar.bz2 egawk-4d8fd72d6cdd54aec2881ef5ecb17cad0e595f99.zip |
Add backup version of fnmatch.c. Fix fnmatch extension.
Diffstat (limited to 'extension/fnmatch.c')
-rw-r--r-- | extension/fnmatch.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/extension/fnmatch.c b/extension/fnmatch.c index c63fe136..7f8ab8d7 100644 --- a/extension/fnmatch.c +++ b/extension/fnmatch.c @@ -45,9 +45,16 @@ #define _(msgid) gettext(msgid) #define N_(msgid) msgid -#ifdef HAVE_FNMATCH_H #define _GNU_SOURCE 1 /* use GNU extensions if they're there */ +#ifdef HAVE_FNMATCH_H #include <fnmatch.h> +#else +#include "../missing_d/fnmatch.h" /* version that comes with gawk */ +#endif + +#ifndef HAVE_FNMATCH +#include "../missing_d/fnmatch.c" /* ditto */ +#define HAVE_FNMATCH #endif /* Provide GNU extensions as no-ops if not defined */ |