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 "mpplayer.hxx"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <netdb.h>
|
#ifndef _MSC_VER
|
||||||
#include <sys/socket.h>
|
# include <netdb.h>
|
||||||
#include <netinet/in.h>
|
# include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
# include <netinet/in.h>
|
||||||
|
# include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
#include <plib/netSocket.h>
|
#include <plib/netSocket.h>
|
||||||
|
|
||||||
#include <Main/globals.hxx>
|
#include <Main/globals.hxx>
|
||||||
|
@ -281,7 +283,7 @@ void MPPlayer::FillMsgHdr(T_MsgHdr *MsgHdr, const int iMsgId) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
inet_aton(m_PlayerAddress.getHost(), &address);
|
address.s_addr = inet_addr( m_PlayerAddress.getHost() );
|
||||||
MsgHdr->lReplyAddress = address.s_addr;
|
MsgHdr->lReplyAddress = address.s_addr;
|
||||||
|
|
||||||
MsgHdr->iReplyPort = m_PlayerAddress.getPort();
|
MsgHdr->iReplyPort = m_PlayerAddress.getPort();
|
||||||
|
|
|
@ -51,9 +51,11 @@
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#ifndef _MSC_VER
|
||||||
#include <netinet/in.h>
|
# include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
# include <netinet/in.h>
|
||||||
|
# include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
#include <plib/netSocket.h>
|
#include <plib/netSocket.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,11 @@
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#ifndef _MSC_VER
|
||||||
#include <netinet/in.h>
|
# include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
# include <netinet/in.h>
|
||||||
|
# include <arpa/inet.h>
|
||||||
|
#endif
|
||||||
#include <plib/netSocket.h>
|
#include <plib/netSocket.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include STL_STRING
|
#include STL_STRING
|
||||||
|
|
||||||
#include <iostream.h>
|
#include <iostream>
|
||||||
|
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue