aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRink Springer <rink@rink.nu>2018-02-02 08:44:55 +0100
committerBen Hutchings <ben@decadent.org.uk>2020-03-28 21:42:54 +0000
commitbe47d99b3d05ea898412536d717a15d80cd8b68f (patch)
tree9cdb141fd2ee03a231c3cf4bc0c554c39be03a95
parentc1ef04b089e914b55a069d5bdfac8a3b37cda172 (diff)
downloadklibc-be47d99b3d05ea898412536d717a15d80cd8b68f.tar.gz
[klibc] dash: expand: Remove dependency on fmatch.h if it does not exit
[ dash commit 556e2f03cc9e6e92ba361171226cd890db53589e ] [ 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> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/dash/expand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/dash/expand.c b/usr/dash/expand.c
index e2d563fef29e6..153f6b7a1b24c 100644
--- a/usr/dash/expand.c
+++ b/usr/dash/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