summaryrefslogtreecommitdiff
path: root/libc/misc/internals/h_errno.c
blob: 8e457501e7c394f693cc2dc37a8e559197b82a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <features.h>
#include <netdb.h>
#undef h_errno

#ifdef __UCLIBC_HAS_TLS__
__thread int h_errno;
extern __thread int __libc_h_errno __attribute__ ((alias ("h_errno"))) attribute_hidden;
#else
extern int h_errno;
int h_errno = 0;
# ifdef __UCLIBC_HAS_THREADS__
strong_alias(h_errno,_h_errno)
# endif
#endif