Update SocketImpl.cpp
This commit is contained in:
parent
255812c80e
commit
d4cd0581e4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue