mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fall back to unsigned int, not int, for socklen_t.
It's a coin toss which of these is a better default assumption.
However, of the machines we have in the buildfarm, the only ones
relying on the fallback socklen_t definition are ancient HPUX,
and on that platform unsigned int is the right choice. Minor
tweak to ee3a1a5b6
.
Discussion: https://postgr.es/m/1440792.1636558888@sss.pgh.pa.us
This commit is contained in:
parent
0726c764bc
commit
01ec41a5fe
@ -37,8 +37,9 @@ typedef SOCKET pgsocket;
|
|||||||
#define PGINVALID_SOCKET INVALID_SOCKET
|
#define PGINVALID_SOCKET INVALID_SOCKET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* if platform lacks socklen_t, we assume this will work */
|
||||||
#ifndef HAVE_SOCKLEN_T
|
#ifndef HAVE_SOCKLEN_T
|
||||||
typedef int socklen_t;
|
typedef unsigned int socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* non-blocking */
|
/* non-blocking */
|
||||||
|
Loading…
Reference in New Issue
Block a user