From: Nguyễn Thái Ngọc Duy Date: Tue, 1 Jan 2013 02:44:03 +0000 (+0700) Subject: compat/fnmatch: respect NO_FNMATCH* even on glibc X-Git-Tag: v1.8.2-rc0~148^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/889316d2528e93cb79f3e6fdd92cea4ccaab4a54?hp=3a078dec3327fb68faa7c800040f89db3e38e6e5 compat/fnmatch: respect NO_FNMATCH* even on glibc Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- 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