Remove check for accept() argument types
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 9 Nov 2021 14:20:47 +0000 (15:20 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 9 Nov 2021 14:35:26 +0000 (15:35 +0100)
commitee3a1a5b636b69dde33d68c428dd56b3389a4538
tree6943325f2baa9e3e70994b3edd79ea5534ed6ba7
parent4cd046c203bbca2955182f78eabc06e831ffdbb1
Remove check for accept() argument types

This check was used to accommodate a staggering variety in particular
in the type of the third argument of accept().  This is no longer of
concern on currently supported systems.  We can just use socklen_t in
the code and put in a simple check that substitutes int for socklen_t
if it's missing, to cover the few stragglers.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/3538f4c4-1886-64f2-dcff-aaad8267fb82@enterprisedb.com
13 files changed:
aclocal.m4
config/ac_func_accept_argtypes.m4 [deleted file]
configure
configure.ac
src/backend/libpq/auth.c
src/backend/libpq/pqcomm.c
src/backend/postmaster/pgstat.c
src/include/libpq/pqcomm.h
src/include/pg_config.h.in
src/include/port.h
src/interfaces/libpq/fe-connect.c
src/port/getpeereid.c
src/tools/msvc/Solution.pm