mirror of https://git.musl-libc.org/git/musl
Browse Source
we do not bother making h_errno thread-local since the only interfaces that use it are inherently non-thread-safe. but still use the potentially-thread-local ABI to access it just to avoid lock-in.rs-1.0
3 changed files with 14 additions and 1 deletions
@ -1 +1,9 @@ |
|||
#include <netdb.h> |
|||
|
|||
#undef h_errno; |
|||
int h_errno; |
|||
|
|||
int *__h_errno_location(void) |
|||
{ |
|||
return &h_errno; |
|||
} |
|||
|
|||
Loading…
Reference in new issue