diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/inet/resolv.c | 1 | ||||
-rw-r--r-- | libc/misc/internals/__h_errno_location.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 4bfec0a50..c2df49224 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -1145,7 +1145,6 @@ struct __res_state * weak_const_function __res_state (void) } #ifdef __UCLIBC_HAS_THREADS_NATIVE__ -#include <tls.h> __thread struct __res_state *__resp = &_res; #endif diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c index f4f598057..d1040dd87 100644 --- a/libc/misc/internals/__h_errno_location.c +++ b/libc/misc/internals/__h_errno_location.c @@ -3,6 +3,12 @@ #include <netdb.h> #undef h_errno +#ifdef __UCLIBC_HAS_THREADS_NATIVE__ +extern __thread int h_errno; +#else +extern int h_errno; +#endif + int * weak_const_function __h_errno_location (void) { return &h_errno; |