summaryrefslogtreecommitdiff
path: root/sysdeps/generic/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/errno.c')
-rw-r--r--sysdeps/generic/errno.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/generic/errno.c b/sysdeps/generic/errno.c
index cba5ab9c3b..e33c6b88ad 100644
--- a/sysdeps/generic/errno.c
+++ b/sysdeps/generic/errno.c
@@ -23,6 +23,8 @@
#if USE___THREAD
__thread int errno;
+extern __thread int __libc_errno __attribute__ ((alias ("errno")))
+ attribute_hidden;
#else
/* This differs from plain `int errno;' in that it doesn't create
a common definition, but a plain symbol that resides in .bss,