From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove configure probes for sys/un.h and struct sockaddr_un.
Date: Sat, 13 Aug 2022 12:16:44 +0000
Message-ID: <E1oMq4I-000aeP-S9@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/077bf2f2750076675ae7195c58bec9a62d62fd34
Modified Files
--------------
config/c-library.m4 | 14 --------------
configure | 17 +----------------
configure.ac | 2 --
src/include/c.h | 4 ----
src/include/libpq/pqcomm.h | 4 +---
src/include/pg_config.h.in | 6 ------
src/include/port.h | 3 +++
src/include/port/win32.h | 11 -----------
src/include/port/win32/sys/un.h | 17 +++++++++++++++++
src/port/getpeereid.c | 4 +---
src/tools/msvc/Solution.pm | 2 --
11 files changed, 23 insertions(+), 61 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Remove configure probes for sys/un.h and struct sockaddr_un.
In-Reply-To: <E1oMq4I-000aeP-S9@gemulon.postgresql.org>
References: <E1oMq4I-000aeP-S9@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox