aboutsummaryrefslogtreecommitdiff
path: root/win32/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/net.c')
-rw-r--r--win32/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/net.c b/win32/net.c
index a44d91abb..05df6d20e 100644
--- a/win32/net.c
+++ b/win32/net.c
@@ -47,7 +47,7 @@ int mingw_socket(int domain, int type, int protocol)
47} 47}
48 48
49#undef connect 49#undef connect
50int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz) 50int mingw_connect(int sockfd, const struct sockaddr *sa, size_t sz)
51{ 51{
52 SOCKET s = (SOCKET)_get_osfhandle(sockfd); 52 SOCKET s = (SOCKET)_get_osfhandle(sockfd);
53 return connect(s, sa, sz); 53 return connect(s, sa, sz);