summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-17 11:01:04 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-17 11:01:04 +0100
commitfbe324024de24d236549179b77c07fa02d9b6926 (patch)
tree7574806dfd56b0ef482d717a0fb1d4c78514cee7
parent5a2b42a48342ee59c9ee48d1632f040088609589 (diff)
inet: hide relocations
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--include/ifaddrs.h2
-rw-r--r--libc/inet/ifaddrs.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index ba6a1554b..90a8bc14f 100644
--- a/include/ifaddrs.h
+++ b/include/ifaddrs.h
@@ -65,9 +65,11 @@ struct ifaddrs
The storage returned in *IFAP is allocated dynamically and can
only be properly freed by passing it to `freeifaddrs'. */
extern int getifaddrs (struct ifaddrs **__ifap) __THROW;
+libc_hidden_proto(getifaddrs)
/* Reclaim the storage allocated by a previous `getifaddrs' call. */
extern void freeifaddrs (struct ifaddrs *__ifa) __THROW;
+libc_hidden_proto(freeifaddrs)
__END_DECLS
diff --git a/libc/inet/ifaddrs.c b/libc/inet/ifaddrs.c
index 39729ef47..535f6277f 100644
--- a/libc/inet/ifaddrs.c
+++ b/libc/inet/ifaddrs.c
@@ -845,13 +845,14 @@ getifaddrs (struct ifaddrs **ifap)
return result;
}
-
+libc_hidden_def(getifaddrs)
void
freeifaddrs (struct ifaddrs *ifa)
{
free (ifa);
}
+libc_hidden_def(freeifaddrs)
#endif /* __UCLIBC_SUPPORT_AI_ADDRCONFIG__ */