Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/errno/errno.c')
-rw-r--r--newlib/libc/errno/errno.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/errno/errno.c b/newlib/libc/errno/errno.c
index 70402924b..384b07f2c 100644
--- a/newlib/libc/errno/errno.c
+++ b/newlib/libc/errno/errno.c
@@ -5,6 +5,10 @@
#include <errno.h>
#include <reent.h>
+#ifdef _REENT_THREAD_LOCAL
+_Thread_local int _tls_errno;
+#else /* !_REENT_THREAD_LOCAL */
+
#ifndef _REENT_ONLY
int *
@@ -14,3 +18,5 @@ __errno ()
}
#endif
+
+#endif /* _REENT_THREAD_LOCAL */