aboutsummaryrefslogtreecommitdiff
path: root/compat
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 /compat
parent3a078dec3327fb68faa7c800040f89db3e38e6e5 (diff)
downloadgit-889316d2528e93cb79f3e6fdd92cea4ccaab4a54.tar.gz
git-889316d2528e93cb79f3e6fdd92cea4ccaab4a54.tar.xz
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>
Diffstat (limited to 'compat')
-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 9473aed2b..6f7387d03 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