Create typedef pgsocket for storing socket descriptors.

Magnus Hagander <magnus@hagander.net>

Commit: 87091cb1f1ed914e2ddca424fa28f94fdf8461d2
Author: Magnus Hagander <magnus@hagander.net>
Date: 2010-01-10T14:16:08Z
Releases: 9.0.0
Create typedef pgsocket for storing socket descriptors.

This silences some warnings on Win64. Not using the proper SOCKET datatype
was actually wrong on Win32 as well, but didn't cause any warnings there.

Also create define PGINVALID_SOCKET to indicate an invalid/non-existing
socket, instead of using a hardcoded -1 value.

Files

PathChange+/−
src/backend/libpq/auth.c modified +2 −2
src/backend/libpq/ip.c modified +3 −3
src/backend/libpq/pqcomm.c modified +10 −10
src/backend/postmaster/pgstat.c modified +11 −11
src/backend/postmaster/postmaster.c modified +14 −14
src/include/libpq/libpq-be.h modified +2 −2
src/include/libpq/libpq.h modified +4 −4
src/include/port.h modified +12 −3
src/port/noblock.c modified +3 −3