summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-01-01 09:44:03 +0700
committerJunio C Hamano <gitster@pobox.com>2013-01-01 15:32:36 -0800
commit889316d2528e93cb79f3e6fdd92cea4ccaab4a54 (patch)
tree99304f0d2d0b69fbde8016349a345a88ffc6201f
parent3a078dec3327fb68faa7c800040f89db3e38e6e5 (diff)
downloadgit-889316d2528e93cb79f3e6fdd92cea4ccaab4a54.tar.gz
compat/fnmatch: respect NO_FNMATCH* even on glibc
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--compat/fnmatch/fnmatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 9473aed2bb..6f7387d036 100644
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
@@ -55,7 +55,8 @@
program understand `configure --with-gnu-libc' and omit the object files,
it is simpler to just do this in the source for each such file. */
-#if defined _LIBC || !defined __GNU_LIBRARY__
+#if defined NO_FNMATCH || defined NO_FNMATCH_CASEFOLD || \
+ defined _LIBC || !defined __GNU_LIBRARY__
# if defined STDC_HEADERS || !defined isascii