aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interfaces/libpq/fe-connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 0d729c88b0c..18fcb0c2372 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -1780,9 +1780,10 @@ keep_going: /* We will come back to here until there is
addr_cur->ai_addrlen) < 0)
{
if (SOCK_ERRNO == EINPROGRESS ||
+#ifdef WIN32
SOCK_ERRNO == EWOULDBLOCK ||
- SOCK_ERRNO == EINTR ||
- SOCK_ERRNO == 0)
+#endif
+ SOCK_ERRNO == EINTR)
{
/*
* This is fine - we're in non-blocking mode, and