]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_socket.cxx
Make it compile with gcc-4.6
[simgear.git] / simgear / io / sg_socket.cxx
index 770bb51dcbbbf274e84e996bc3fb12a1e04a6315..4af401de65e98dc356ea2410ad82a02a1b1bda50 100644 (file)
@@ -84,7 +84,7 @@ SGSocket::make_server_socket()
        return false;
     }
 
-    if (sock.bind( "", port ) < 0)
+    if (sock.bind( hostname.c_str(), port ) < 0)
     {
        SG_LOG( SG_IO, SG_ALERT,
                "Error: bind() failed in make_server_socket()" );