summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__ */