aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-10-11 07:57:44 -0500
committerCorinna Vinschen <corinna@vinschen.de>2017-11-13 10:19:23 +0100
commitb1a388799dc98e6d1451fb73aa71097cbf9f37d9 (patch)
treef57814737219e23834b344d56df9ad910c6d12d4 /newlib/libc
parent181fe5d2edacfd1578fe881c857dda7eae9ec104 (diff)
downloadnewlib-b1a388799dc98e6d1451fb73aa71097cbf9f37d9.zip
newlib-b1a388799dc98e6d1451fb73aa71097cbf9f37d9.tar.gz
newlib-b1a388799dc98e6d1451fb73aa71097cbf9f37d9.tar.bz2
newlib/.../getreent.c: Allow to be provided by host and do so for RTEMS
RTEMS provides the option to have a global or per-thread reentrancy as part of application configuration. As part of this, RTEMS provides the implementation of __getreent() as appropriate. Allow the target to determine if this method is present in libc.a.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/reent/getreent.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/reent/getreent.c b/newlib/libc/reent/getreent.c
index 60ae6fb..124abce 100644
--- a/newlib/libc/reent/getreent.c
+++ b/newlib/libc/reent/getreent.c
@@ -1,5 +1,11 @@
/* default reentrant pointer when multithread enabled */
+#ifdef GETREENT_PROVIDED
+
+int _dummy_getreent;
+
+#else
+
#include <_ansi.h>
#include <reent.h>
@@ -12,3 +18,5 @@ _DEFUN_VOID(__getreent)
{
return _impure_ptr;
}
+
+#endif