diff options
| author | Peter Eisentraut | 2021-11-09 14:20:47 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2021-11-09 14:35:26 +0000 |
| commit | ee3a1a5b636b69dde33d68c428dd56b3389a4538 (patch) | |
| tree | 6943325f2baa9e3e70994b3edd79ea5534ed6ba7 /src/include/libpq | |
| parent | 4cd046c203bbca2955182f78eabc06e831ffdbb1 (diff) | |
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
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/pqcomm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index be9d9705744..1bcc189deeb 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -62,7 +62,7 @@ struct sockaddr_storage typedef struct { struct sockaddr_storage addr; - ACCEPT_TYPE_ARG3 salen; + socklen_t salen; } SockAddr; /* Configure the UNIX socket location for the well known port. */ |
