summaryrefslogblamecommitdiff
path: root/src/network/h_errno.c
blob: 638f77180314a625e90507a7890cfafa94e7f1b6 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  
                         
 


              

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