From dd3efa88cf634b29d2628e3ec753341ba7dab0e5 Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Thu, 11 May 2017 14:37:57 +0100 Subject: [PATCH] Windows compile issue --- src/TcpListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TcpListener.cpp b/src/TcpListener.cpp index 16388b5..2d4e9bf 100644 --- a/src/TcpListener.cpp +++ b/src/TcpListener.cpp @@ -43,7 +43,7 @@ namespace fr //If it's an IPv6 interface, attempt to allow IPv4 connections if(c->ai_family == AF_INET6) { - setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&no, sizeof(no)); + setsockopt(socket_descriptor, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&no, sizeof(no)); } //Attempt to bind