about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:06:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:06:15 +0100
commit7c5b106dcbb10cf383ade30de14260f23a6ecfba (patch)
tree1e4bd005c815802e3c1b492584bd08806efa9bd4 /nscd
parent28f6186f3e065ee9d46476e8e9f06135482ae17b (diff)
downloadglibc-7c5b106dcbb10cf383ade30de14260f23a6ecfba.tar.gz
glibc-7c5b106dcbb10cf383ade30de14260f23a6ecfba.tar.xz
glibc-7c5b106dcbb10cf383ade30de14260f23a6ecfba.zip
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.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/gai.c2
1 files changed, 2 insertions, 0 deletions
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