aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/reent/getreent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/reent/getreent.c b/newlib/libc/reent/getreent.c
index 5fa98e9..86bb04f 100644
--- a/newlib/libc/reent/getreent.c
+++ b/newlib/libc/reent/getreent.c
@@ -9,6 +9,8 @@ int _dummy_getreent;
#include <_ansi.h>
#include <reent.h>
+#ifndef _REENT_THREAD_LOCAL
+
#ifdef __getreent
#undef __getreent
#endif
@@ -19,4 +21,6 @@ __getreent (void)
return _impure_ptr;
}
+#endif /* !_REENT_THREAD_LOCAL */
+
#endif