1 #include <features.h> 2 #include <netdb.h> 3 #undef h_errno 4 5 #ifdef __UCLIBC_HAS_TLS__ 6 __thread int h_errno; 7 extern __thread int __libc_h_errno __attribute__ ((alias ("h_errno"))) attribute_hidden; 8 #else 9 extern int h_errno; 10 int h_errno = 0; 11 # ifdef __UCLIBC_HAS_THREADS__ 12 strong_alias(h_errno,_h_errno) 13 # endif 14 #endif 15