summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc_reent.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/newlibc_reent.c')
-rw-r--r--cpukit/libcsupport/src/newlibc_reent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/newlibc_reent.c b/cpukit/libcsupport/src/newlibc_reent.c
index 972248fa67..62b5d6b123 100644
--- a/cpukit/libcsupport/src/newlibc_reent.c
+++ b/cpukit/libcsupport/src/newlibc_reent.c
@@ -36,12 +36,14 @@ bool newlib_create_hook(
struct _reent *ptr;
bool ok;
+#if !defined(__DYNAMIC_REENT__)
if (_Thread_libc_reent == 0)
{
_REENT = _GLOBAL_REENT;
_Thread_Set_libc_reent (&_REENT);
}
+#endif
/* It is OK to allocate from the workspace because these
* hooks run with thread dispatching disabled.