Remove check for accept() argument types
Peter Eisentraut <peter@eisentraut.org>
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
| Path | Change | +/− |
|---|---|---|
| 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
- [RFC] building postgres with meson 392 messages · 2021-10-12 → 2023-06-12