Subject: [PATCH v2 1/9] compat/fnmatch: respect NO_FNMATCH* even on glibc

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Fri, 28 Dec 2012 11:10:46 +0700

Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
---
 compat/fnmatch/fnmatch.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 9473aed..6f7387d 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
-- 
1.8.0.rc2.23.g1fb49df