split versions for cygwin vs visual studio in ioctlsocket
authorChris Koeritz <fred@gruntose.com>
Mon, 26 Sep 2016 20:42:45 +0000 (16:42 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 26 Sep 2016 20:42:45 +0000 (16:42 -0400)
octopi/library/sockets/raw_socket.cpp

index 5bc2a87efac523fd7443040f1f16500e423117c0..9b750e2ff4dedf0bf47ff268a49c20422ac31ac4 100644 (file)
@@ -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
 }