mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
check for socklen_t evailability
This commit is contained in:
parent
f75c88b247
commit
d02d502d30
1 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,11 @@ qf_sendmsg (int sock, void *data, size_t len, struct sockaddr_in *addr)
|
|||
static int
|
||||
qf_recvmsg (int sock, void *data, size_t len, struct sockaddr_in *addr)
|
||||
{
|
||||
size_t addr_len = sizeof (*addr);
|
||||
#ifdef HAVE_SOCKLEN_T
|
||||
socklen_t addr_len = sizeof (*addr);
|
||||
#else
|
||||
int addr_len = sizeof (*addr);
|
||||
#endif
|
||||
return recvfrom (sock, data, len, 0, (struct sockaddr *)addr, &addr_len);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue