make h_errno thread-local
[musl] / src / network / h_errno.c
1 #include <netdb.h>
2 #include "pthread_impl.h"
3
4 int *__h_errno_location(void)
5 {
6         return &__pthread_self()->h_errno_val;
7 }