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.
This commit is contained in:
curt
2002-05-15 19:21:54 +00:00
parent 8c0b36fe9e
commit ce5d4b7db8
4 changed files with 19 additions and 7 deletions
+8 -2
View File
@@ -39,14 +39,20 @@ tcp_server_SOURCES = tcp_server.cxx
tcp_server_LDADD = \ tcp_server_LDADD = \
$(top_builddir)/simgear/io/libsgio.a \ $(top_builddir)/simgear/io/libsgio.a \
$(top_builddir)/simgear/debug/libsgdebug.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_SOURCES = tcp_client.cxx
tcp_client_LDADD = \ tcp_client_LDADD = \
$(top_builddir)/simgear/io/libsgio.a \ $(top_builddir)/simgear/io/libsgio.a \
$(top_builddir)/simgear/debug/libsgdebug.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 socktest_SOURCES = socktest.cxx
+2 -2
View File
@@ -46,7 +46,7 @@ SGSocket::SGSocket( const string& host, const string& port_,
{ {
if (!init) if (!init)
{ {
netInit(); netInit(NULL, NULL); // plib-1.4.2 compatible
init = true; init = true;
} }
@@ -54,7 +54,7 @@ SGSocket::SGSocket( const string& host, const string& port_,
{ {
is_tcp = true; is_tcp = true;
} }
else if ( style != "udp" ) else if ( style != (string)"udp" )
{ {
SG_LOG( SG_IO, SG_ALERT, SG_LOG( SG_IO, SG_ALERT,
"Error: SGSocket() unknown style = " << style ); "Error: SGSocket() unknown style = " << style );
+4 -1
View File
@@ -1,11 +1,14 @@
#include <iostream> #include <simgear/compiler.h>
#include STL_IOSTREAM
#include <unistd.h> #include <unistd.h>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include "sg_socket.hxx" #include "sg_socket.hxx"
#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
using std::cout; using std::cout;
#endif
class TcpClient class TcpClient
{ {
+5 -2
View File
@@ -1,11 +1,14 @@
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <string> #include STL_STRING
#include <iostream> #include STL_IOSTREAM
#include "sg_socket.hxx" #include "sg_socket.hxx"
using std::string; using std::string;
#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
using std::cout; using std::cout;
#endif
class TcpServer class TcpServer
{ {