From 6b58afe8234155e8c6e5bf3d4a43dbd5d0ab9ba7 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Fri, 12 Nov 2010 22:03:11 +0100 Subject: [PATCH] Fix setsockopt call --- simgear/io/raw_socket.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/io/raw_socket.cxx b/simgear/io/raw_socket.cxx index 75184bbd..54b1177c 100644 --- a/simgear/io/raw_socket.cxx +++ b/simgear/io/raw_socket.cxx @@ -200,7 +200,7 @@ bool Socket::open ( bool stream ) if ( stream ) { int opt_boolean = 1; setsockopt( handle, SOL_SOCKET, SO_REUSEADDR, - &opt_boolean, sizeof(opt_boolean) ); + (char *)&opt_boolean, sizeof(opt_boolean) ); } return (handle != -1); -- 2.39.5