mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 13:41:57 +00:00
use __h_errno_location for h_errno
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.
This commit is contained in:
@ -1 +1,9 @@
|
||||
#include <netdb.h>
|
||||
|
||||
#undef h_errno;
|
||||
int h_errno;
|
||||
|
||||
int *__h_errno_location(void)
|
||||
{
|
||||
return &h_errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user