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:
parent
3777f5b90d
commit
e68c51ac46
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <netdb.h>
|
||||
#include "__dns.h"
|
||||
#include "libc.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue