MultiPlayer updates for MSVC from Frederic Bouvier
This commit is contained in:
parent
ef37b45dc7
commit
0fe7c2452c
4 changed files with 18 additions and 12 deletions
|
@ -38,10 +38,12 @@
|
|||
#include "mpplayer.hxx"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#ifndef _MSC_VER
|
||||
# include <netdb.h>
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#include <plib/netSocket.h>
|
||||
|
||||
#include <Main/globals.hxx>
|
||||
|
@ -281,7 +283,7 @@ void MPPlayer::FillMsgHdr(T_MsgHdr *MsgHdr, const int iMsgId) {
|
|||
break;
|
||||
}
|
||||
|
||||
inet_aton(m_PlayerAddress.getHost(), &address);
|
||||
address.s_addr = inet_addr( m_PlayerAddress.getHost() );
|
||||
MsgHdr->lReplyAddress = address.s_addr;
|
||||
|
||||
MsgHdr->iReplyPort = m_PlayerAddress.getPort();
|
||||
|
|
|
@ -51,9 +51,11 @@
|
|||
******************************************************************/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#ifndef _MSC_VER
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#include <plib/netSocket.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -31,9 +31,11 @@
|
|||
******************************************************************/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#ifndef _MSC_VER
|
||||
# include <sys/socket.h>
|
||||
# include <netinet/in.h>
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
#include <plib/netSocket.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include STL_STRING
|
||||
|
||||
#include <iostream.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <simgear/debug/logstream.hxx>
|
||||
|
||||
|
|
Loading…
Reference in a new issue