mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -1552,6 +1552,7 @@ PGAC_C_BUILTIN_UNREACHABLE
|
||||
PGAC_C_COMPUTED_GOTO
|
||||
PGAC_STRUCT_TIMEZONE
|
||||
PGAC_UNION_SEMUN
|
||||
AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/socket.h>])
|
||||
PGAC_STRUCT_SOCKADDR_UN
|
||||
PGAC_STRUCT_SOCKADDR_STORAGE
|
||||
PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS
|
||||
@ -1686,7 +1687,6 @@ fi
|
||||
##
|
||||
|
||||
PGAC_VAR_INT_TIMEZONE
|
||||
AC_FUNC_ACCEPT_ARGTYPES
|
||||
PGAC_FUNC_GETTIMEOFDAY_1ARG
|
||||
PGAC_FUNC_WCSTOMBS_L
|
||||
|
||||
|
Reference in New Issue
Block a user