diff options
Diffstat (limited to 'newlib/libc/errno/errno.c')
-rw-r--r-- | newlib/libc/errno/errno.c | 6 |
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 */ |