summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-29 08:17:04 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-30 07:45:16 +0200
commitd2e256a36a877fca17272c2e4640d967ea8c490f (patch)
treebf29756ae6280a91684f6f3ce0f84489fe8ee786
parent668a4c8722090fffd10869dbb15b879651c1370d (diff)
downloadcygnal-d2e256a36a877fca17272c2e4640d967ea8c490f.tar.gz
cygnal-d2e256a36a877fca17272c2e4640d967ea8c490f.tar.bz2
cygnal-d2e256a36a877fca17272c2e4640d967ea8c490f.zip
Enable _REENT_GLOBAL_STDIO_STREAMS for RTEMS
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r--newlib/libc/include/sys/config.h1
-rw-r--r--newlib/libc/stdio/local.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 555239f8b..ae8caff7b 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -238,6 +238,7 @@
#define _READ_WRITE_RETURN_TYPE _ssize_t
#define __DYNAMIC_REENT__
#define _REENT_GLOBAL_ATEXIT
+#define _REENT_GLOBAL_STDIO_STREAMS
#endif
#ifndef __EXPORT
diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h
index 5f6995501..511e5e35f 100644
--- a/newlib/libc/stdio/local.h
+++ b/newlib/libc/stdio/local.h
@@ -38,7 +38,7 @@
case _STDIO_CLOSE_PER_REENT_STD_STREAMS is defined these file descriptors
will be closed via close() provided the owner of the reent structure
triggerd the on demand reent initilization, see CHECK_INIT(). */
-#if !defined(__rtems__) && !defined(__tirtos__)
+#if !defined(__tirtos__)
#define _STDIO_CLOSE_PER_REENT_STD_STREAMS
#endif