aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index f2b15da82..30cd1535b 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -848,13 +848,15 @@ singleipconnect(struct connectdata *conn,
switch (error) {
case EINPROGRESS:
case EWOULDBLOCK:
-#if defined(EAGAIN) && EAGAIN != EWOULDBLOCK
+#if defined(EAGAIN)
+#if (EAGAIN) != (EWOULDBLOCK)
/* On some platforms EAGAIN and EWOULDBLOCK are the
* same value, and on others they are different, hence
* the odd #if
*/
case EAGAIN:
#endif
+#endif
rc = waitconnect(sockfd, timeout_ms);
break;
default: