Skip to content

Commit 889316d

Browse files
pcloudsgitster
authored andcommitted
compat/fnmatch: respect NO_FNMATCH* even on glibc
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a078de commit 889316d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/fnmatch/fnmatch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
program understand `configure --with-gnu-libc' and omit the object files,
5656
it is simpler to just do this in the source for each such file. */
5757

58-
#if defined _LIBC || !defined __GNU_LIBRARY__
58+
#if defined NO_FNMATCH || defined NO_FNMATCH_CASEFOLD || \
59+
defined _LIBC || !defined __GNU_LIBRARY__
5960

6061

6162
# if defined STDC_HEADERS || !defined isascii

0 commit comments

Comments
 (0)