From: Sven M. Hallberg Date: Thu, 16 Oct 2014 15:36:58 +0000 (+0200) Subject: make ioctl() work for setting values X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=de2b14e15ff63cfd0218691532e7c7e9153f7c04;p=catta make ioctl() work for setting values --- 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();