diff options
Diffstat (limited to 'libc/posix')
-rw-r--r-- | libc/posix/Makefile | 3 | ||||
-rw-r--r-- | libc/posix/bug-regex1.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libc/posix/Makefile b/libc/posix/Makefile index 85ddd67ea..8a4fbda45 100644 --- a/libc/posix/Makefile +++ b/libc/posix/Makefile @@ -156,6 +156,8 @@ endif OPTION_EGLIBC_INET-CFLAGS-$(OPTION_EGLIBC_INET) = -DUSE_NSCD=1 OPTION_EGLIBC_GETLOGIN-CFLAGS-$(OPTION_EGLIBC_GETLOGIN) \ = -DOPTION_EGLIBC_GETLOGIN +OPTION_POSIX_WIDE_CHAR_DEVICE_IO-CFLAGS-$(OPTION_POSIX_WIDE_CHAR_DEVICE_IO) \ + = -DOPTION_POSIX_WIDE_CHAR_DEVICE_IO CFLAGS-regex.c = -Wno-strict-prototypes CFLAGS-getaddrinfo.c = -DRESOLVER -fexceptions $(OPTION_EGLIBC_INET-CFLAGS-y) @@ -191,6 +193,7 @@ CFLAGS-execle.os = -fomit-frame-pointer CFLAGS-execl.os = -fomit-frame-pointer CFLAGS-execvp.os = -fomit-frame-pointer CFLAGS-execlp.os = -fomit-frame-pointer +CFLAGS-bug-regex1.c = $(OPTION_POSIX_WIDE_CHAR_DEVICE_IO-CFLAGS-y) tstgetopt-ARGS = -a -b -cfoobar --required foobar --optional=bazbug \ --none random --col --color --colour diff --git a/libc/posix/bug-regex1.c b/libc/posix/bug-regex1.c index 38eb54395..01c03716e 100644 --- a/libc/posix/bug-regex1.c +++ b/libc/posix/bug-regex1.c @@ -17,7 +17,9 @@ main (void) memset (®ex, '\0', sizeof (regex)); setlocale (LC_ALL, "de_DE.ISO-8859-1"); +#ifdef OPTION_POSIX_WIDE_CHAR_DEVICE_IO fwide (stdout, -1); +#endif re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_DEBUG); |