Fall back to unsigned int, not int, for socklen_t.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Nov 2021 15:36:39 +0000 (10:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Nov 2021 15:36:39 +0000 (10:36 -0500)
commit01ec41a5fe4aa590dde18a2c551432aa1925caea
treefb619d48607844d7fc4b2d14c1534a7f57a7951e
parent0726c764bc4ec337a0216a546ce41c758d81600d
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
src/include/port.h