summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/socket.c')
-rw-r--r--otherlibs/win32unix/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/otherlibs/win32unix/socket.c b/otherlibs/win32unix/socket.c
index ed6e2e349..079473f81 100644
--- a/otherlibs/win32unix/socket.c
+++ b/otherlibs/win32unix/socket.c
@@ -15,8 +15,6 @@
#include <mlvalues.h>
#include "unixsupport.h"
-#include <sys/types.h>
-#include <winsock.h>
int socket_domain_table[] = {
PF_UNIX, PF_INET
@@ -53,5 +51,5 @@ CAMLprim value unix_socket(domain, type, proto)
win32_maperr(WSAGetLastError());
uerror("socket", Nothing);
}
- return win_alloc_handle((HANDLE) s);
+ return win_alloc_socket(s);
}