aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/port.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/port.h b/src/include/port.h
index ae68d9c3c79..49b4d38131b 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -37,8 +37,9 @@ typedef SOCKET pgsocket;
#define PGINVALID_SOCKET INVALID_SOCKET
#endif
+/* if platform lacks socklen_t, we assume this will work */
#ifndef HAVE_SOCKLEN_T
-typedef int socklen_t;
+typedef unsigned int socklen_t;
#endif
/* non-blocking */