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>

Nguyễn Thái Ngọc Duy committed Jan 1, 2013 at 09:44 UTC 889316d2528e93cb79f3e6fdd92cea4ccaab4a54
1 file changed +2 -1
compat/fnmatch/fnmatch.c
+2 -1
@@ -55,7 +55,8 @@
55 program understand `configure --with-gnu-libc' and omit the object files,
56 it is simpler to just do this in the source for each such file. */
57
58 -#if defined _LIBC || !defined __GNU_LIBRARY__
58 +#if defined NO_FNMATCH || defined NO_FNMATCH_CASEFOLD || \
59 + defined _LIBC || !defined __GNU_LIBRARY__
60
61
62 # if defined STDC_HEADERS || !defined isascii