diff options
Diffstat (limited to 'libc/misc/internals/__h_errno_location.c')
-rw-r--r-- | libc/misc/internals/__h_errno_location.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |