* Port to MinGW
This commit is contained in:
1 parent
50eb77ed1a
commit
fcaf343d7f
28 files changed
+347
-64
No files matched your search
@@ -488,7 +488,7 @@ int NET_IPSocket( char *net_interface, int port ) {
|
||||
}
|
||||
|
||||
// make it non-blocking
|
||||
if( ioctlsocket( newsocket, FIONBIO, &_true ) == SOCKET_ERROR ) {
|
||||
if( ioctlsocket( newsocket, FIONBIO, (u_long *)&_true ) == SOCKET_ERROR ) {
|
||||
Com_Printf( "WARNING: UDP_OpenSocket: ioctl FIONBIO: %s\n", NET_ErrorString() );
|
||||
return 0;
|
||||
}
|
||||
@@ -799,7 +799,7 @@ int NET_IPXSocket( int port ) {
|
||||
}
|
||||
|
||||
// make it non-blocking
|
||||
if( ioctlsocket( newsocket, FIONBIO, &_true ) == SOCKET_ERROR ) {
|
||||
if( ioctlsocket( newsocket, FIONBIO, (u_long *)&_true ) == SOCKET_ERROR ) {
|
||||
Com_Printf( "WARNING: IPX_Socket: ioctl FIONBIO: %s\n", NET_ErrorString() );
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user