Remove configure probes for sys/un.h and struct sockaddr_un.

Thomas Munro <tmunro@postgresql.org>

Commit: 077bf2f2750076675ae7195c58bec9a62d62fd34
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2022-08-13T12:09:47Z
Releases: 16.0
Remove configure probes for sys/un.h and struct sockaddr_un.

<sys/un.h> is in SUSv3 and every targeted Unix has it.  Some Windows
tool chains may still lack the approximately equivalent header
<afunix.h>, so we already defined struct sockaddr_un ourselves on that
OS for now.  To harmonize things a bit, move our definition into a new
header src/include/port/win32/sys/un.h.

HAVE_UNIX_SOCKETS is now defined unconditionally.  We migh remove that
in a separate commit, pending discussion.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com

Files

PathChange+/−
config/c-library.m4 modified +0 −14
configure modified +1 −16
configure.ac modified +0 −2
src/include/c.h modified +0 −4
src/include/libpq/pqcomm.h modified +1 −3
src/include/pg_config.h.in modified +0 −6
src/include/port.h modified +3 −0
src/include/port/win32.h modified +0 −11
src/include/port/win32/sys/un.h added +17 −0
src/port/getpeereid.c modified +1 −3
src/tools/msvc/Solution.pm modified +0 −2

Discussion