diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/net.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win32/net.c b/win32/net.c index 98204b99c..eadda6b69 100644 --- a/win32/net.c +++ b/win32/net.c | |||
@@ -45,3 +45,10 @@ int mingw_socket(int domain, int type, int protocol) | |||
45 | } | 45 | } |
46 | return sockfd; | 46 | return sockfd; |
47 | } | 47 | } |
48 | |||
49 | #undef connect | ||
50 | int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz) | ||
51 | { | ||
52 | SOCKET s = (SOCKET)_get_osfhandle(sockfd); | ||
53 | return connect(s, sa, sz); | ||
54 | } | ||