summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 11:39:36 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 11:39:36 +0000
commit80d941bfb2f83e4159dd86d2128e150e7bb5e58f (patch)
treeac146d9bf01644965a697ff7ae82090cbe3da7ae /libc
parentdcb268635730e862049f0695559dc24e95a4bc08 (diff)
hide the internal __in6addr_any/__in6addr_loopback symbols
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/getaddrinfo.c2
-rw-r--r--libc/inet/in6_addr.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
index ee5fdc5f7..cc348661a 100644
--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -599,7 +599,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
#if __UCLIBC_HAS_IPV6__
if (req->ai_family == 0 || req->ai_family == AF_INET6)
{
- extern const struct in6_addr __in6addr_loopback;
+ extern const struct in6_addr __in6addr_loopback attribute_hidden;
at->family = AF_INET6;
if ((req->ai_flags & AI_PASSIVE) == 0)
__memcpy (at->addr, &__in6addr_loopback, sizeof (struct in6_addr));
diff --git a/libc/inet/in6_addr.c b/libc/inet/in6_addr.c
index 7e52d2e39..006f6a48b 100644
--- a/libc/inet/in6_addr.c
+++ b/libc/inet/in6_addr.c
@@ -22,12 +22,12 @@
#include <netinet/in.h>
#ifdef __UCLIBC_HAS_IPV6__
-const struct in6_addr __in6addr_any =
+const struct in6_addr in6addr_any =
{ { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } };
-weak_alias (__in6addr_any, in6addr_any)
-const struct in6_addr __in6addr_loopback =
+hidden_weak_alias (in6addr_any, __in6addr_any)
+const struct in6_addr in6addr_loopback =
{ { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } };
-weak_alias(__in6addr_loopback, in6addr_loopback)
+hidden_weak_alias(in6addr_loopback, __in6addr_loopback)
#endif /* __UCLIBC_HAS_IPV6__ */