Remove configure probe for sockaddr_in6 and require AF_INET6.
authorThomas Munro <tmunro@postgresql.org>
Thu, 25 Aug 2022 22:13:22 +0000 (10:13 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 25 Aug 2022 22:18:30 +0000 (10:18 +1200)
commitbcc8b14ef630b2ad9aae7813981fb248fbff9ed8
tree522dcfb926b2b235137aec71256dbb281c1dd5af
parent28ec316787674dd74d00b296724a009b6edc2fb0
Remove configure probe for sockaddr_in6 and require AF_INET6.

SUSv3 <netinet/in.h> defines struct sockaddr_in6, and all targeted Unix
systems have it.  Windows has it in <ws2ipdef.h>.  Remove the configure
probe, the macro and a small amount of dead code.

Also remove a mention of IPv6-less builds from the documentation, since
there aren't any.

This is similar to commits f5580882 and 077bf2f2 for Unix sockets.  Even
though AF_INET6 is an "optional" component of SUSv3, there are no known
modern operating system without it, and it seems even less likely to be
omitted from future systems than AF_UNIX.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
16 files changed:
configure
configure.ac
doc/src/sgml/client-auth.sgml
src/backend/libpq/auth.c
src/backend/libpq/hba.c
src/backend/libpq/ifaddr.c
src/backend/libpq/pqcomm.c
src/backend/utils/adt/network.c
src/backend/utils/adt/pgstatfuncs.c
src/bin/initdb/initdb.c
src/include/pg_config.h.in
src/include/utils/inet.h
src/interfaces/libpq/fe-connect.c
src/port/inet_net_ntop.c
src/tools/ifaddrs/test_ifaddrs.c
src/tools/msvc/Solution.pm