summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRink Springer <rink@rink.nu>2018-02-02 08:44:55 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-10 16:01:43 +0800
commit556e2f03cc9e6e92ba361171226cd890db53589e (patch)
treec48dfa3313ffb82474426c77bca432c869ecb813 /src
parentinput: Fix here-document redirection with vi/emacs on (diff)
downloaddash-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 'src')
-rw-r--r--src/expand.c2
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