diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-11-19 14:17:15 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-11-19 14:17:15 +0100 |
commit | 8e101704c32c47654d7453f5bde42d8d0c8cc160 (patch) | |
tree | a9b449b5b5780cdbb16874777764c825ebabf271 | |
parent | 820c0ceb2ed92080e8d76d50b78ba01bd264baef (diff) | |
download | tigervnc-8e101704c32c47654d7453f5bde42d8d0c8cc160.tar.gz tigervnc-8e101704c32c47654d7453f5bde42d8d0c8cc160.zip |
Fix setsockopt() call on Windows
They use char* rather than void*, requiring a cast here.
-rw-r--r-- | common/network/TcpSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index dd028600..0db6ff6b 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx @@ -435,7 +435,7 @@ TcpListener::TcpListener(const char *listenaddr, int port, bool localhostOnly, #ifdef IPV6_V6ONLY // - We made an IPv6-capable socket, and we need it to do IPv4 too int opt = 0; - setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &opt, sizeof(opt)); + setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&opt, sizeof(opt)); #else vlog.error("IPV6_V6ONLY support is missing. " "IPv4 clients may not be able to connect."); |