diff options
-rw-r--r-- | include/ifaddrs.h | 2 | ||||
-rw-r--r-- | libc/inet/ifaddrs.c | 3 |
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__ */ |