From de2b14e15ff63cfd0218691532e7c7e9153f7c04 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Thu, 16 Oct 2014 17:36:58 +0200 Subject: [PATCH] make ioctl() work for setting values --- src/compat/windows/wincompat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compat/windows/wincompat.c b/src/compat/windows/wincompat.c index 890565b..98bc2d7 100644 --- a/src/compat/windows/wincompat.c +++ b/src/compat/windows/wincompat.c @@ -231,7 +231,7 @@ ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags) int ioctl(int d, unsigned long request, int *p) { - u_long arg = 0; + u_long arg = *p; if(ioctlsocket(d, request, &arg) == SOCKET_ERROR) { errno = wsa_errno(); -- 2.39.5