From 74b424075c6d0ee668343936624b12cea10f3f19 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 25 Jan 2020 16:41:49 +0000 Subject: [PATCH] Use FNM_IGNORECASE if present, from Eric N Vander Weele in GitHub issue 2067. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat.h b/compat.h index 794ac67d..70801d0d 100644 --- a/compat.h +++ b/compat.h @@ -171,8 +171,12 @@ void warnx(const char *, ...); #endif #ifndef FNM_CASEFOLD +#ifdef FNM_IGNORECASE +#define FNM_CASEFOLD FNM_IGNORECASE +#else #define FNM_CASEFOLD 0 #endif +#endif #ifndef INFTIM #define INFTIM -1