Skip to contentSkip to conversation

Remove dependency on fmatch.h if it does not exit

PATCH New Rink Springer 1 participant 1 message Feb 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

src/expand.c +2 -0
index 2a50830..1ab5757 100644
@@ -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