diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-12 09:41:29 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-12 09:41:29 +0100 |
commit | d8d656a2929d9fd54d9263634c803b92dab568c3 (patch) | |
tree | 4bca99b303c048554ae8fbb4247fb256464b4611 /extension/fnmatch.c | |
parent | 2f8d4e37f5dffe7f5b8d28a21d785b37d6e09e0f (diff) | |
parent | 038e70b403210a1ad298666b61369e03fb6d6ca6 (diff) | |
download | egawk-d8d656a2929d9fd54d9263634c803b92dab568c3.tar.gz egawk-d8d656a2929d9fd54d9263634c803b92dab568c3.tar.bz2 egawk-d8d656a2929d9fd54d9263634c803b92dab568c3.zip |
Merge remote-tracking branch 'origin/master' into cmake
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 */ |