[git commit] inet: hide relocations
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Nov 17 10:01:04 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=fbe324024de24d236549179b77c07fa02d9b6926
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/ifaddrs.h | 2 ++
libc/inet/ifaddrs.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index ba6a155..90a8bc1 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 39729ef..535f627 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__ */
More information about the uClibc-cvs
mailing list