hurd: Fix getifaddrs / freeifaddrs exposition

400669754d ('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.
This commit is contained in:
Samuel Thibault 2018-01-28 19:06:15 +01:00
parent 28f6186f3e
commit 7c5b106dcb
3 changed files with 4 additions and 2 deletions

View File

@ -51,6 +51,8 @@
* hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
* sysdeps/mach/hurd/check_native.c: New file.
* sysdeps/mach/hurd/check_pf.c: New file.
* nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
(__freeifaddrs): Define macro to freeifaddrs.
* sysdeps/mach/hurd/libhurduser.abilist: New file.
* sysdeps/mach/libmachuser.abilist: New file.
* libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.

View File

@ -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

View File

@ -1,3 +1 @@
#define __getifaddrs getifaddrs
#define __freeifaddrs freeifaddrs
#include <inet/check_pf.c>