[1/1] libc/include/sys/config.h: Undef _REENT_SMALL for RTEMS on MicroBlaze

Message ID 20210721180034.63160-2-alex.white@oarcorp.com
State Accepted
Commit 44a3966577bc29ad4394c7117964dcfec5011646
Headers show
Series
  • Fix file IO for RTEMS on MicroBlaze
Related show

Commit Message

Alex White July 21, 2021, 6 p.m.
RTEMS does not expect _REENT_SMALL.
---
 newlib/libc/include/sys/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.27.0

Patch

diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 4bc8d29bf..b9dff88ff 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -127,7 +127,7 @@ 
 #endif
 
 /* Configure small REENT structure for Xilinx MicroBlaze platforms */
-#if defined (__MICROBLAZE__)
+#if defined (__MICROBLAZE__) && !defined(__rtems__)
 #ifndef _REENT_SMALL
 #define _REENT_SMALL
 #endif