# HG changeset patch # User Paul Eggert # Date 1092264211 0 # Node ID 050058152c7cde6cb5f8d8edbd9f6e01ea44403d # Parent 7408a225f04c74e34ea4ad9dbdf4c7266809ad92 (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 --- 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. */