* [PATCH] Remove dependency on fmatch.h if it does not exit
@ 2018-02-02 7:43 Rink Springer
0 siblings, 0 replies; 2+ messages in thread
From: Rink Springer @ 2018-02-02 7:43 UTC (permalink / raw)
To: dash
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Remove dependency on fmatch.h if it does not exit
@ 2018-02-02 7:44 Rink Springer
0 siblings, 0 replies; 2+ messages in thread
From: Rink Springer @ 2018-02-02 7:44 UTC (permalink / raw)
To: dash
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
[ 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
[-- Attachment #2: dash-fnmatch.diff --]
[-- Type: text/x-diff, Size: 373 bytes --]
Do not assume we can include fnmatch.h
Signed-off-by: Rink Springer <rink@rink.nu>
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-02 7:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 7:43 [PATCH] Remove dependency on fmatch.h if it does not exit Rink Springer
2018-02-02 7:44 Rink Springer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).