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 3ff9ee307e8..ab427c1964b 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -1738,9 +1738,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