summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-11-19 14:17:15 +0100
committerPierre Ossman <ossman@cendio.se>2014-11-19 14:17:15 +0100
commit8e101704c32c47654d7453f5bde42d8d0c8cc160 (patch)
treea9b449b5b5780cdbb16874777764c825ebabf271
parent820c0ceb2ed92080e8d76d50b78ba01bd264baef (diff)
downloadtigervnc-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.cxx2
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.");