From d2d573391d1cb10aa4f9ac4125741810354dd740 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 6 Jan 2006 04:52:34 +0000 Subject: create __if_nametoindex hidden alias and use it --- libc/inet/getaddrinfo.c | 1 + libc/inet/if_index.c | 1 + 2 files changed, 2 insertions(+) (limited to 'libc') diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c index a85e2ff5e..ee5fdc5f7 100644 --- a/libc/inet/getaddrinfo.c +++ b/libc/inet/getaddrinfo.c @@ -51,6 +51,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define inet_pton __inet_pton #define inet_ntop __inet_ntop #define strtoul __strtoul +#define if_nametoindex __if_nametoindex #if 0 #define uname __uname #define stpcpy __stpcpy diff --git a/libc/inet/if_index.c b/libc/inet/if_index.c index abfb26e00..dfddbc0d4 100644 --- a/libc/inet/if_index.c +++ b/libc/inet/if_index.c @@ -65,6 +65,7 @@ if_nametoindex(const char* ifname) return ifr.ifr_ifindex; #endif } +hidden_strong_alias(if_nametoindex,__if_nametoindex) void if_freenameindex (struct if_nameindex *ifn) -- cgit v1.2.3