From: curt Date: Wed, 15 May 2002 19:21:54 +0000 (+0000) Subject: Erik Hofman: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ce5d4b7db84698ecb337afca05aac0b149e6e19b;p=simgear.git Erik Hofman: Some small patches to make the code Irix/Muli platform compatible and one small fix to make it plib-1.4.2 compatible also. --- diff --git a/simgear/io/Makefile.am b/simgear/io/Makefile.am index ef61ff85..92e1f1b6 100644 --- a/simgear/io/Makefile.am +++ b/simgear/io/Makefile.am @@ -39,14 +39,20 @@ tcp_server_SOURCES = tcp_server.cxx tcp_server_LDADD = \ $(top_builddir)/simgear/io/libsgio.a \ $(top_builddir)/simgear/debug/libsgdebug.a \ - -lplibnet + $(top_builddir)/simgear/bucket/libsgbucket.a \ + $(top_builddir)/simgear/misc/libsgmisc.a \ + $(top_builddir)/simgear/xml/libsgxml.a \ + -lplibnet -lz tcp_client_SOURCES = tcp_client.cxx tcp_client_LDADD = \ $(top_builddir)/simgear/io/libsgio.a \ $(top_builddir)/simgear/debug/libsgdebug.a \ - -lplibnet + $(top_builddir)/simgear/bucket/libsgbucket.a \ + $(top_builddir)/simgear/misc/libsgmisc.a \ + $(top_builddir)/simgear/xml/libsgxml.a \ + -lplibnet -lz socktest_SOURCES = socktest.cxx diff --git a/simgear/io/sg_socket.cxx b/simgear/io/sg_socket.cxx index b348ddf1..20238727 100644 --- a/simgear/io/sg_socket.cxx +++ b/simgear/io/sg_socket.cxx @@ -46,7 +46,7 @@ SGSocket::SGSocket( const string& host, const string& port_, { if (!init) { - netInit(); + netInit(NULL, NULL); // plib-1.4.2 compatible init = true; } @@ -54,7 +54,7 @@ SGSocket::SGSocket( const string& host, const string& port_, { is_tcp = true; } - else if ( style != "udp" ) + else if ( style != (string)"udp" ) { SG_LOG( SG_IO, SG_ALERT, "Error: SGSocket() unknown style = " << style ); diff --git a/simgear/io/tcp_client.cxx b/simgear/io/tcp_client.cxx index a902bb12..78548f53 100644 --- a/simgear/io/tcp_client.cxx +++ b/simgear/io/tcp_client.cxx @@ -1,11 +1,14 @@ -#include +#include +#include STL_IOSTREAM #include #include #include "sg_socket.hxx" +#ifndef SG_HAVE_NATIVE_SGI_COMPILERS using std::cout; +#endif class TcpClient { diff --git a/simgear/io/tcp_server.cxx b/simgear/io/tcp_server.cxx index ac7abddc..cd9b8ea7 100644 --- a/simgear/io/tcp_server.cxx +++ b/simgear/io/tcp_server.cxx @@ -1,11 +1,14 @@ +#include #include -#include -#include +#include STL_STRING +#include STL_IOSTREAM #include "sg_socket.hxx" using std::string; +#ifndef SG_HAVE_NATIVE_SGI_COMPILERS using std::cout; +#endif class TcpServer {