summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getreentglobal.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/getreentglobal.c')
-rw-r--r--cpukit/libcsupport/src/getreentglobal.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/getreentglobal.c b/cpukit/libcsupport/src/getreentglobal.c
new file mode 100644
index 0000000000..775b4462cc
--- /dev/null
+++ b/cpukit/libcsupport/src/getreentglobal.c
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2018 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if defined(RTEMS_NEWLIB)
+#include <sys/reent.h>
+
+struct _reent *__getreent(void)
+{
+ return _GLOBAL_REENT;
+}
+#endif