aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-11 23:15:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-11 23:15:13 +0000
commit96fecba190b3968a2c076272e3cd80834dd66e66 (patch)
treefa0bc0b1b9e1f83c0903c1c9c0e3ce947415f6ee /lib/connect.c
parent50257d4f5031e4c206c58c7f8629640507ef46b3 (diff)
bindlocal works for Windows!
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 9bc7d5076..e19a01b2d 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -70,6 +70,7 @@
#define EINPROGRESS WSAEINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EISCONN WSAEISCONN
+#define ENOTSOCK WSAENOTSOCK
#endif
#include "urldata.h"
@@ -190,11 +191,6 @@ int waitconnect(int sockfd, /* socket */
static CURLcode bindlocal(struct connectdata *conn,
int sockfd)
{
-#if !defined(WIN32)||defined(__CYGWIN32__)
- /* We don't generally like checking for OS-versions, we should make this
- HAVE_XXXX based, although at the moment I don't have a decent test for
- this! */
-
#ifdef HAVE_INET_NTOA
struct SessionHandle *data = conn->data;
@@ -342,7 +338,6 @@ static CURLcode bindlocal(struct connectdata *conn,
} /* end of device selection support */
#endif /* end of HAVE_INET_NTOA */
-#endif /* end of not WIN32 */
return CURLE_HTTP_PORT_FAILED;
}