diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/h_errno.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/h_errno.c b/src/network/h_errno.c index 4f700cea..8677a92b 100644 --- a/src/network/h_errno.c +++ b/src/network/h_errno.c @@ -1,9 +1,7 @@ #include <netdb.h> - -#undef h_errno -int h_errno; +#include "pthread_impl.h" int *__h_errno_location(void) { - return &h_errno; + return &__pthread_self()->h_errno_val; } |