From: Paul Eggert Date: Wed, 11 Aug 2004 17:53:34 +0000 (+0000) Subject: (WIDE_CHAR_SUPPORT): Don't set to 1 if missing X-Git-Tag: v5.3.0~798 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4364ab87c36468eccbdfa2d6c119f9b6637840a;p=thirdparty%2Fcoreutils.git (WIDE_CHAR_SUPPORT): Don't set to 1 if missing wmemchr or wmemcpy. Problem reported by Robert Dahlem for Reliant Unix 5.43. --- diff --git a/lib/fnmatch.c b/lib/fnmatch.c index 32468964d8..011a145038 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -39,7 +39,9 @@ #include #include -#define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) +#define WIDE_CHAR_SUPPORT \ + (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC \ + && HAVE_WMEMCHR && (HAVE_WMEMCPY || HAVE_WMEMPCPY)) /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */