summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2010-07-06 08:30:00 -0700
committerAustin Foxley <austinf@cetoncorp.com>2010-07-06 08:30:00 -0700
commita8f396655b8cca3518ac20d07246d91eb138ce07 (patch)
tree99b7e8ff51493665220bbf1336752b7a1ffa855e /libc/misc
parent0d6ee549bc86fd330672a79d9a87d2c3825eea67 (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/misc')
-rw-r--r--libc/misc/internals/__errno_location.c3
-rw-r--r--libc/misc/internals/__h_errno_location.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c
index 71c5461a7..aec7641ce 100644
--- a/libc/misc/internals/__errno_location.c
+++ b/libc/misc/internals/__errno_location.c
@@ -15,3 +15,6 @@ __errno_location (void)
{
return &errno;
}
+#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
+libc_hidden_weak(__errno_location)
+#endif
diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
index 235df4ec6..213d39894 100644
--- a/libc/misc/internals/__h_errno_location.c
+++ b/libc/misc/internals/__h_errno_location.c
@@ -10,3 +10,4 @@ int * weak_const_function __h_errno_location (void)
{
return &h_errno;
}
+libc_hidden_weak(__h_errno_location)