diff options
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r-- | stdio-common/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 8c7bae9c45..e65ff70713 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -50,3 +50,9 @@ include ../Rules CFLAGS-_itoa.c = -Wno-unused CFLAGS-tst-printf.c = -Wno-format + +ifeq ($(stdio),libio) +ifneq (,$(filter %REENTRANT, $(defines))) +CPPFLAGS += -D_IO_MTSAFE_IO +endif +endif |