summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-01-25 16:41:49 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-01-25 16:41:49 +0000
commit74b424075c6d0ee668343936624b12cea10f3f19 (patch)
tree4a6099d03e65209208e7270c154b9ee4290afdda /compat.h
parentcdf138372c4b7a0cc48e15c1ad6412a88db08fb8 (diff)
Use FNM_IGNORECASE if present, from Eric N Vander Weele in GitHub issue 2067.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h4
1 files changed, 4 insertions, 0 deletions
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