From 7c5b106dcbb10cf383ade30de14260f23a6ecfba Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 28 Jan 2018 19:06:15 +0100 Subject: hurd: Fix getifaddrs / freeifaddrs exposition 400669754de4 ('hurd: Fix nscd build') had the side effect of making libc's freeaddrinfo expose freeifaddrs through __check_pf. We can just move the renames to gai.c itself, along others. * sysdeps/mach/hurd/check_pf.c (__getifaddrs, __freeifaddrs): Do not define macros. * nscd/gai.c (__getifaddrs): Define macro to getifaddrs. (__freeifaddrs): Define macro to freeifaddrs. --- nscd/gai.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nscd') diff --git a/nscd/gai.c b/nscd/gai.c index d00a184c46..d081747797 100644 --- a/nscd/gai.c +++ b/nscd/gai.c @@ -31,6 +31,8 @@ #define __qsort_r qsort_r /* nscd uses 1MB or 2MB thread stacks. */ #define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF) +#define __getifaddrs getifaddrs +#define __freeifaddrs freeifaddrs /* We are nscd, so we don't want to be talking to ourselves. */ #undef USE_NSCD -- cgit v1.2.3