mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibC: Make h_errno thread-local
This commit is contained in:
parent
0aee2abda7
commit
bc18fa75ec
2 changed files with 8 additions and 0 deletions
|
@ -19,7 +19,11 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
#ifdef NO_TLS
|
||||
int h_errno;
|
||||
#else
|
||||
__thread int h_errno;
|
||||
#endif
|
||||
|
||||
static hostent __gethostbyname_buffer;
|
||||
static in_addr_t __gethostbyname_address;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue