From: Chris Koeritz Date: Mon, 26 Sep 2016 20:42:45 +0000 (-0400) Subject: split versions for cygwin vs visual studio in ioctlsocket X-Git-Tag: 2.140.90~420 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=f29812b042dede629e2c60469db039d30a8f2bad;p=feisty_meow.git split versions for cygwin vs visual studio in ioctlsocket --- diff --git a/octopi/library/sockets/raw_socket.cpp b/octopi/library/sockets/raw_socket.cpp index 5bc2a87e..9b750e2f 100644 --- a/octopi/library/sockets/raw_socket.cpp +++ b/octopi/library/sockets/raw_socket.cpp @@ -126,7 +126,11 @@ int raw_socket::ioctl(basis::un_int socket, int request, void *argp) const return ::ioctl(socket, request, argp); #endif #ifdef __WIN32__ - return ioctlsocket(socket, request, (un_int *)argp); + #ifdef _MSC_VER + return ioctlsocket(socket, request, (un_long *)argp); + #else + return ioctlsocket(socket, request, (un_int *)argp); + #endif #endif }