From: Rink Springer <rink@rink.nu>
To: dash@vger.kernel.org
Subject: [PATCH] Remove dependency on fmatch.h if it does not exit
Date: Fri, 2 Feb 2018 08:44:55 +0100 [thread overview]
Message-ID: <20180202074455.GD1669@rink.nu> (raw)
[-- 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
next reply other threads:[~2018-02-02 7:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 7:44 Rink Springer [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-02-02 7:43 [PATCH] Remove dependency on fmatch.h if it does not exit Rink Springer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180202074455.GD1669@rink.nu \
--to=rink@rink.nu \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).