summaryrefslogtreecommitdiff
path: root/lib/fnmatch.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-11 17:53:34 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-11 17:53:34 +0000
commitf4364ab87c36468eccbdfa2d6c119f9b6637840a (patch)
treefe60e112ccd1dfa86b0452d7cc7461a94a4adebc /lib/fnmatch.c
parent9bcc09b5b7bf0e16c170b9ce99d9a023bf7bc8cb (diff)
downloadcoreutils-f4364ab87c36468eccbdfa2d6c119f9b6637840a.tar.xz
(WIDE_CHAR_SUPPORT): Don't set to 1 if missing
wmemchr or wmemcpy. Problem reported by Robert Dahlem for Reliant Unix 5.43.
Diffstat (limited to 'lib/fnmatch.c')
-rw-r--r--lib/fnmatch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c
index 32468964d..011a14503 100644
--- a/lib/fnmatch.c
+++ b/lib/fnmatch.c
@@ -39,7 +39,9 @@
#include <stdlib.h>
#include <string.h>
-#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. */