blob: 638f77180314a625e90507a7890cfafa94e7f1b6 [file] [log] [blame]
#include <netdb.h>
#include "pthread_impl.h"
#undef h_errno
int h_errno;
int *__h_errno_location(void)
{
if (!__pthread_self()->stack) return &h_errno;
return &__pthread_self()->h_errno_val;
}