aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-11-14 23:17:32 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-11-14 23:17:32 +0000
commitea8fbb5233b24745177871a7e1e9105a137f94f9 (patch)
treea963f9776eec8eb2aa8f28638992bab9c05ad8c4 /lib/connect.c
parent9b033e1b8a9eb81ff9468faa0e4839187ecdc568 (diff)
Added some #ifdefs around header files and change the EAGAIN test to
fix compilation on Cell (reported by Jeff Curley).
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: