mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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:
parent
28f6186f3e
commit
7c5b106dcb
@ -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.
|
||||
|
@ -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
|
||||
|
@ -1,3 +1 @@
|
||||
#define __getifaddrs getifaddrs
|
||||
#define __freeifaddrs freeifaddrs
|
||||
#include <inet/check_pf.c>
|
||||
|
Loading…
Reference in New Issue
Block a user