1
Fork 0
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:
Michał Lach 2022-05-10 12:58:55 +02:00 committed by Andreas Kling
parent 0aee2abda7
commit bc18fa75ec
2 changed files with 8 additions and 0 deletions

View file

@ -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;