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