1 2 3 4 5 6 7
#include <netdb.h> #include "pthread_impl.h" int *__h_errno_location(void) { return &__pthread_self()->h_errno_val; }