Network: Fix Linux build

This commit is contained in:
Jérôme Leclercq 2017-07-11 12:19:11 +02:00
parent 0931ee39e0
commit aac8d8301b
1 changed files with 3 additions and 1 deletions

View File

@ -587,6 +587,8 @@ namespace Nz
msgHdr.msg_namelen = static_cast<socklen_t>(nameBuffer.size());
}
IpAddress senderIp;
int byteRead = recvmsg(handle, &msgHdr, MSG_NOSIGNAL);
if (byteRead == -1)
{
@ -599,7 +601,7 @@ namespace Nz
case EWOULDBLOCK:
{
// If we have no data and are not blocking, return true with 0 byte read
recvLength = 0;
byteRead = 0;
senderIp = IpAddress::Invalid;
break;
}