summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/connect.c')
-rw-r--r--otherlibs/win32unix/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/otherlibs/win32unix/connect.c b/otherlibs/win32unix/connect.c
index d921c0e84..a7fd2aeec 100644
--- a/otherlibs/win32unix/connect.c
+++ b/otherlibs/win32unix/connect.c
@@ -28,6 +28,9 @@ CAMLprim value unix_connect(socket, address)
enter_blocking_section();
retcode = connect(s, &addr.s_gen, addr_len);
leave_blocking_section();
- if (retcode == -1) unix_error(WSAGetLastError(), "connect", Nothing);
+ if (retcode == -1) {
+ win32_maperr(WSAGetLastError());
+ uerror("connect", Nothing);
+ }
return Val_unit;
}