From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87839 invoked by alias); 30 Jun 2017 05:47:50 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 82168 invoked by uid 10080); 30 Jun 2017 05:47:45 -0000 Date: Fri, 30 Jun 2017 05:47:00 -0000 Message-ID: <20170630054745.82159.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Enable _REENT_GLOBAL_STDIO_STREAMS for RTEMS X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 668a4c8722090fffd10869dbb15b879651c1370d X-Git-Newrev: d2e256a36a877fca17272c2e4640d967ea8c490f X-SW-Source: 2017-q2/txt/msg00089.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d2e256a36a877fca17272c2e4640d967ea8c490f commit d2e256a36a877fca17272c2e4640d967ea8c490f Author: Sebastian Huber Date: Thu Jun 29 08:17:04 2017 +0200 Enable _REENT_GLOBAL_STDIO_STREAMS for RTEMS Signed-off-by: Sebastian Huber Diff: --- newlib/libc/include/sys/config.h | 1 + newlib/libc/stdio/local.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 555239f..ae8caff 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 5f69955..511e5e3 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