Update SocketImpl.cpp

This commit is contained in:
ImperatorS79 2020-11-21 21:35:51 +01:00
parent 255812c80e
commit d4cd0581e4
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#if !defined(TCP_KEEPIDLE) && defined(TCP_KEEPALIVE)
#define TCP_KEEPIDLE TCP_KEEPALIVE // see -> https://gitlab.freedesktop.org/spice/usbredir/-/issues/9
#endi
#endif
namespace Nz
{
@ -601,7 +601,7 @@ namespace Nz
}
IpAddress senderIp;
#if not defined(MSG_NOSIGNAL)
#if defined(MSG_NOSIGNAL)
int byteRead = recvmsg(handle, &msgHdr, MSG_NOSIGNAL);
#else
int byteRead = recvmsg(handle, &msgHdr, 0);
@ -721,7 +721,7 @@ namespace Nz
msgHdr.msg_iov = sysBuffers.data();
msgHdr.msg_iovlen = static_cast<int>(bufferCount);
#if not defined(MSG_NOSIGNAL)
#if defined(MSG_NOSIGNAL)
int byteSent = sendmsg(handle, &msgHdr, MSG_NOSIGNAL);
#else
int byteSent = sendmsg(handle, &msgHdr, 0);