]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added some #ifdefs around header files and change the EAGAIN test to
authorDan Fandrich <dan@coneharvesters.com>
Fri, 14 Nov 2008 23:17:32 +0000 (23:17 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 14 Nov 2008 23:17:32 +0000 (23:17 +0000)
fix compilation on Cell (reported by Jeff Curley).

CHANGES
lib/connect.c
lib/dict.c
lib/file.c
lib/telnet.c
lib/tftp.c
lib/transfer.c

diff --git a/CHANGES b/CHANGES
index 6c89a2f629c4c5f17ff7bde3314a7cfb5955adc3..8bc8ee14210b27078c64fc2020bd16168c8f768c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,9 @@ Daniel Fandrich (14 Nov 2008)
 - Added .xml as one of the few common file extensions known by the multipart
   form generator.
 
+- Added some #ifdefs around header files and change the EAGAIN test to
+  fix compilation on Cell (reported by Jeff Curley).
+
 Yang Tse (13 Nov 2008)
 - Refactored configure script detection of functions used to set sockets into
   non-blocking mode, and decouple function detection from function capability.
index f2b15da8227cf7678a1c89e44fc9b3c4e5560f7d..30cd1535bddecd0a2728ec18dc1307e464e9710c 100644 (file)
@@ -848,12 +848,14 @@ 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;
index 6bd75f6dc1953ca6107b247f9a5582743e5da463..7fadfe892e101c8892ac5a23fb69b9485b82dadb 100644 (file)
@@ -53,7 +53,9 @@
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#endif
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
index b0af2fcd90838939be82869b6fb5707338ce0c04..d1302ab816ff45cb39676e5b62dad7cf39186321 100644 (file)
@@ -57,7 +57,9 @@
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#endif
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
index 4d405b621cda4f4e2b278ec4d14abad10eca0478..d9c5f07b790d1e899e180e40634657d65cfe9043 100644 (file)
@@ -52,7 +52,9 @@
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#endif
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
index e58365c10a1c1386ee89f7070728ca40b73fa282..15849c5e51b007b3c275c75a0e915e42b7f6c0e3 100644 (file)
@@ -52,7 +52,9 @@
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
+#ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
+#endif
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
index 35443bf2fdd391daabd6f892fd46424eb2d27c98..4313680efb17ce17e0849fa72fde8564a66015db 100644 (file)
@@ -63,7 +63,9 @@
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif
+#ifdef HAVE_SIGNAL_H
 #include <signal.h>
+#endif
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>