From d7c8cffecb56b4a9e2cc2af331d0b70a92040b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 18 Feb 2014 11:35:01 +0100 Subject: [PATCH] windows: fixed compilation warning --- src/win/tcp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/win/tcp.c b/src/win/tcp.c index 8fa2146a..efdcc722 100644 --- a/src/win/tcp.c +++ b/src/win/tcp.c @@ -271,7 +271,11 @@ static int uv_tcp_try_bind(uv_tcp_t* handle, /* TODO: how to handle errors? This may fail if there is no ipv4 stack */ /* available, or when run on XP/2003 which have no support for dualstack */ /* sockets. For now we're silently ignoring the error. */ - setsockopt(handle->socket, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof on); + setsockopt(handle->socket, + IPPROTO_IPV6, + IPV6_V6ONLY, + (const char*)&on, + sizeof on); } #endif