about summary refs log tree commit diff
path: root/inet/herrno.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/herrno.c')
-rw-r--r--inet/herrno.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/inet/herrno.c b/inet/herrno.c
index 165762bdba..406e91ec4b 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)