diff options
author | Rink Springer <rink@rink.nu> | 2018-02-02 08:44:55 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-10 16:01:43 +0800 |
commit | 556e2f03cc9e6e92ba361171226cd890db53589e (patch) | |
tree | c48dfa3313ffb82474426c77bca432c869ecb813 /src | |
parent | input: Fix here-document redirection with vi/emacs on (diff) | |
download | dash-556e2f03cc9e6e92ba361171226cd890db53589e.tar.gz dash-556e2f03cc9e6e92ba361171226cd890db53589e.zip |
expand: Remove dependency on fmatch.h if it does not exit
[ Ugh; forgot to attach patch - apologies, I need more coffee ] Dear all, Attached is a trivial patch that removes the assumption that fnmatch.h is available - the configure script already checks for fnmatch(3) and supplies its own implementation if necessary, but fnmatch.h is always included. Let me know what you think. Regards, Rink Do not assume we can include fnmatch.h Signed-off-by: Rink Springer <rink@rink.nu> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | src/expand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expand.c b/src/expand.c index 2a50830..1ab5757 100644 --- a/src/expand.c +++ b/src/expand.c @@ -45,7 +45,9 @@ #include <inttypes.h> #include <limits.h> #include <string.h> +#ifdef HAVE_FNMATCH #include <fnmatch.h> +#endif #ifdef HAVE_GLOB #include <glob.h> #endif |