summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-14 04:06:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-14 04:06:07 +0000
commit36e67ceff92013237cd965a2a863ed803f3d8155 (patch)
tree79c042ccec443b424077ecdc100ad939029bdba1 /libc
parent1106e27c6d7e76854a73d95944f320eade3ecb1b (diff)
As released in uClibc 0.9.16, regex was being compiled without
wide char support, even when the rest of uClibc was. This led to anyone using regex segfaulting... -Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/regex/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/regex/regex.c b/libc/misc/regex/regex.c
index 81298314b..0e8a18f5d 100644
--- a/libc/misc/regex/regex.c
+++ b/libc/misc/regex/regex.c
@@ -59,11 +59,11 @@
# include <sys/types.h>
# endif
-# define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC)
/* For platform which support the ISO C amendement 1 functionality we
support user defined character classes. */
-# if defined _LIBC || WIDE_CHAR_SUPPORT
+#if defined __UCLIBC_HAS_WCHAR__
+# define WIDE_CHAR_SUPPORT 1
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
# include <wchar.h>
# include <wctype.h>