diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2010-07-06 08:30:00 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2010-07-06 08:30:00 -0700 |
commit | a8f396655b8cca3518ac20d07246d91eb138ce07 (patch) | |
tree | 99b7e8ff51493665220bbf1336752b7a1ffa855e /libc/sysdeps/linux/common/bits | |
parent | 0d6ee549bc86fd330672a79d9a87d2c3825eea67 (diff) |
Revert "don't make __errno_location / __h_errno_location hidden"
This reverts commit 0d6ee549bc86fd330672a79d9a87d2c3825eea67.
We need to find a solution that will work in shared and static libraries
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/common/bits')
-rw-r--r-- | libc/sysdeps/linux/common/bits/errno.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/uClibc_errno.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h index de9688ac1..0bf6354fb 100644 --- a/libc/sysdeps/linux/common/bits/errno.h +++ b/libc/sysdeps/linux/common/bits/errno.h @@ -43,6 +43,7 @@ # ifndef __ASSEMBLER__ /* Function to get address of global `errno' variable. */ extern int *__errno_location (void) __THROW __attribute__ ((__const__)); +libc_hidden_proto(__errno_location) # ifdef __UCLIBC_HAS_THREADS__ /* When using threads, errno is a per-thread value. */ diff --git a/libc/sysdeps/linux/common/bits/uClibc_errno.h b/libc/sysdeps/linux/common/bits/uClibc_errno.h index 79eb7e6bd..9c1561841 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_errno.h +++ b/libc/sysdeps/linux/common/bits/uClibc_errno.h @@ -33,6 +33,9 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__)) ; # if defined __UCLIBC_HAS_THREADS__ # include <tls.h> +# if defined USE___THREAD && USE___THREAD +libc_hidden_proto(__errno_location) +# endif # endif #endif /* !__ASSEMBLER__ */ |