fix compiplation error on MacOS

This commit is contained in:
Volker Fischer 2018-02-25 08:50:58 +00:00
parent b0d37c86e7
commit 6c8362ea3a

View file

@ -66,9 +66,9 @@ void CSocket::Init ( const quint16 iPortNumber )
{
UdpSocketInAddr.sin_port = htons ( iPortNumber + iClientPortIncrement );
bSuccess = ( bind ( UdpSocket ,
(sockaddr*) &UdpSocketInAddr,
sizeof ( sockaddr_in ) ) == 0 );
bSuccess = ( ::bind ( UdpSocket ,
(sockaddr*) &UdpSocketInAddr,
sizeof ( sockaddr_in ) ) == 0 );
iClientPortIncrement++;
}
@ -80,9 +80,9 @@ void CSocket::Init ( const quint16 iPortNumber )
// gets the desired port number
UdpSocketInAddr.sin_port = htons ( iPortNumber );
bSuccess = ( bind ( UdpSocket ,
(sockaddr*) &UdpSocketInAddr,
sizeof ( sockaddr_in ) ) == 0 );
bSuccess = ( ::bind ( UdpSocket ,
(sockaddr*) &UdpSocketInAddr,
sizeof ( sockaddr_in ) ) == 0 );
}
if ( !bSuccess )