Remove check for accept() argument types

Peter Eisentraut <peter@eisentraut.org>

Commit: ee3a1a5b636b69dde33d68c428dd56b3389a4538
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2021-11-09T14:35:26Z
Releases: 15.0
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

Files

PathChange+/−
aclocal.m4 modified +0 −1
config/ac_func_accept_argtypes.m4 deleted +0 −78
configure modified +11 −71
configure.ac modified +1 −1
src/backend/libpq/auth.c modified +1 −1
src/backend/libpq/pqcomm.c modified +4 −4
src/backend/postmaster/pgstat.c modified +2 −2
src/include/libpq/pqcomm.h modified +1 −1
src/include/pg_config.h.in modified +3 −12
src/include/port.h modified +4 −0
src/interfaces/libpq/fe-connect.c modified +1 −1
src/port/getpeereid.c modified +2 −2
src/tools/msvc/Solution.pm modified +1 −4

Discussion