diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-01 17:14:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-01 17:14:43 +0200 |
commit | c5cdf41d436261b279c172753ac727335d44b9fd (patch) | |
tree | 683471c293193efb703f178b6c41b366f3fe4a02 /gettext-tools/examples/po/sk.po | |
parent | 2d1963afbf456ea8ac21378a814d5230f41eeb72 (diff) | |
download | gettext-c5cdf41d436261b279c172753ac727335d44b9fd.tar.gz |
hostname: Use more modern network APIs.
Reported by Jens Petersen <petersen@redhat.com>
at <https://savannah.gnu.org/bugs/?63983>.
* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add getaddrinfo.
* gettext-tools/src/hostname.c (HAVE_GETADDRINFO): Define to 1.
Do the #includes for gethostname() after those for getaddrinfo().
(ipv4_is_linklocal, ipv6_is_linklocal): New functions.
(print_hostname): For long_format and ip_format, prefer getaddrinfo over
gethostbyname.
* gettext-tools/src/Makefile.am (hostname_LDADD): New variable.
Diffstat (limited to 'gettext-tools/examples/po/sk.po')
0 files changed, 0 insertions, 0 deletions