fix compiplation error on MacOS
This commit is contained in:
parent
b0d37c86e7
commit
6c8362ea3a
1 changed files with 6 additions and 6 deletions
|
@ -66,9 +66,9 @@ void CSocket::Init ( const quint16 iPortNumber )
|
||||||
{
|
{
|
||||||
UdpSocketInAddr.sin_port = htons ( iPortNumber + iClientPortIncrement );
|
UdpSocketInAddr.sin_port = htons ( iPortNumber + iClientPortIncrement );
|
||||||
|
|
||||||
bSuccess = ( bind ( UdpSocket ,
|
bSuccess = ( ::bind ( UdpSocket ,
|
||||||
(sockaddr*) &UdpSocketInAddr,
|
(sockaddr*) &UdpSocketInAddr,
|
||||||
sizeof ( sockaddr_in ) ) == 0 );
|
sizeof ( sockaddr_in ) ) == 0 );
|
||||||
|
|
||||||
iClientPortIncrement++;
|
iClientPortIncrement++;
|
||||||
}
|
}
|
||||||
|
@ -80,9 +80,9 @@ void CSocket::Init ( const quint16 iPortNumber )
|
||||||
// gets the desired port number
|
// gets the desired port number
|
||||||
UdpSocketInAddr.sin_port = htons ( iPortNumber );
|
UdpSocketInAddr.sin_port = htons ( iPortNumber );
|
||||||
|
|
||||||
bSuccess = ( bind ( UdpSocket ,
|
bSuccess = ( ::bind ( UdpSocket ,
|
||||||
(sockaddr*) &UdpSocketInAddr,
|
(sockaddr*) &UdpSocketInAddr,
|
||||||
sizeof ( sockaddr_in ) ) == 0 );
|
sizeof ( sockaddr_in ) ) == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !bSuccess )
|
if ( !bSuccess )
|
||||||
|
|
Loading…
Reference in a new issue