diff options
Diffstat (limited to 'inet/herrno.c')
-rw-r--r-- | inet/herrno.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inet/herrno.c b/inet/herrno.c index 165762b..406e91e 100644 --- a/inet/herrno.c +++ b/inet/herrno.c @@ -27,6 +27,9 @@ #if USE_TLS && HAVE___THREAD __thread int h_errno; +extern __thread int __libc_h_errno __attribute__ ((alias ("h_errno"))) + attribute_hidden; +# define h_errno __libc_h_errno #else int h_errno = 0; weak_alias (h_errno, _h_errno) |