]> git.ipfire.org Git - thirdparty/glibc.git/commit - inet/check_pf.c
hurd: Fix `getifaddrs' and `freeifaddrs' symbol exposition
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 27 Sep 2017 22:19:18 +0000 (00:19 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 27 Sep 2017 23:05:18 +0000 (01:05 +0200)
commit4009ddc69225d571772aaea597615a0c032e14ab
tree5b82cda9a1e05c472d5f008437117588cbaca6bb
parent64a4af28a62e9f305c82bc9649bbe065fffdeb0d
hurd: Fix `getifaddrs' and `freeifaddrs' symbol exposition

from `freeaddrinfo'.

`getifaddrs' and `freeifaddrs' are not in POSIX, they should not be
exposed along `freeaddrinfo' (through `__check_pf') which is POSIX.

* include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
and use libc_hidden_def on them.
* inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
them.
* sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
* inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
instead of getifaddrs and freeifaddrs.
ChangeLog
include/ifaddrs.h
inet/check_pf.c
inet/ifaddrs.c
sysdeps/gnu/ifaddrs.c