summaryrefslogtreecommitdiff
path: root/lib/fnmatch.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-11 22:43:31 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-11 22:43:31 +0000
commita170e5889491163861b5931d74d37bd099cc6afa (patch)
treed1fd894c134411d5125bd7a683463db16c53e1ec /lib/fnmatch.c
parentaeaa8d68d1cd28bd755ecd867db7b26fed4ae1d9 (diff)
downloadgnulib-a170e5889491163861b5931d74d37bd099cc6afa.tar.gz
(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 32468964d8..011a145038 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. */