diff options
Diffstat (limited to 'Libraries/LibC/errno.h')
-rw-r--r-- | Libraries/LibC/errno.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibC/errno.h b/Libraries/LibC/errno.h index 2d2a0b334f..f763dbc914 100644 --- a/Libraries/LibC/errno.h +++ b/Libraries/LibC/errno.h @@ -43,7 +43,12 @@ __BEGIN_DECLS extern const char* const sys_errlist[]; extern int sys_nerr; + +#ifdef NO_TLS +extern int errno; +#else extern __thread int errno; +#endif #define errno errno |