master
 1#include <netdb.h>
 2#include "pthread_impl.h"
 3
 4#undef h_errno
 5int h_errno;
 6
 7int *__h_errno_location(void)
 8{
 9	if (!__pthread_self()->stack) return &h_errno;
10	return &__pthread_self()->h_errno_val;
11}