summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/Curl/connect.c')
-rw-r--r--Source/CTest/Curl/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c
index 3ed65d9..1d1044c 100644
--- a/Source/CTest/Curl/connect.c
+++ b/Source/CTest/Curl/connect.c
@@ -70,6 +70,7 @@
#define EINPROGRESS WSAEINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EISCONN WSAEISCONN
+#undef HAVE_DISABLED_NONBLOCKING
#endif
#include "urldata.h"
@@ -124,7 +125,7 @@ int Curl_nonblock(int socket, /* operate on this */
#ifdef HAVE_IOCTLSOCKET
int flags;
flags = nonblock;
- return ioctlsocket(socket, FIONBIO, &flags);
+ return ioctlsocket(socket, FIONBIO, (unsigned long*)&flags);
#define SETBLOCK 3
#endif
@@ -326,6 +327,8 @@ static CURLcode bindlocal(struct connectdata *conn,
#endif /* end of HAVE_INET_NTOA */
#endif /* end of not WIN32 */
+ (void)conn;
+ (void)sockfd;
return CURLE_HTTP_PORT_FAILED;
}