David Gonzalez Martin 38011a233c Integrate libs
2024-03-02 12:58:12 -06:00

12 lines
197 B
C

#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;
}