mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
I hope this makes the code work on solaris, too and fix the EINVAL on sendto()
This commit is contained in:
parent
70cd2ccfab
commit
fcbf0bdd84
1 changed files with 3 additions and 3 deletions
|
@ -550,9 +550,9 @@ void Sys_SendPacket( int length, const void *data, netadr_t to ) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(addr.ss_family == AF_INET)
|
if(addr.ss_family == AF_INET)
|
||||||
ret = sendto( ip_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(addr) );
|
ret = sendto( ip_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(struct sockaddr_in) );
|
||||||
else
|
else if(addr.ss_family == AF_INET6)
|
||||||
ret = sendto( ip6_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(addr) );
|
ret = sendto( ip6_socket, data, length, 0, (struct sockaddr *) &addr, sizeof(struct sockaddr_in6) );
|
||||||
}
|
}
|
||||||
if( ret == SOCKET_ERROR ) {
|
if( ret == SOCKET_ERROR ) {
|
||||||
int err = socketError;
|
int err = socketError;
|
||||||
|
|
Loading…
Reference in a new issue