From 0c3a9e319d194b0b6650bee391bb620f8dcb6e45 Mon Sep 17 00:00:00 2001 From: daid Date: Wed, 6 Nov 2024 12:14:43 +0100 Subject: [PATCH] Update udpSocket.cpp --- src/io/network/udpSocket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/io/network/udpSocket.cpp b/src/io/network/udpSocket.cpp index 0b585e6a..91f2e612 100644 --- a/src/io/network/udpSocket.cpp +++ b/src/io/network/udpSocket.cpp @@ -23,7 +23,11 @@ static inline int sendto(SOCKET s, const void* msg, size_t len, int flags, const #include #include #include +#if defined(__APPLE__) +static constexpr int flags = 0; +#else static constexpr int flags = MSG_NOSIGNAL; +#endif static constexpr intptr_t INVALID_SOCKET = -1; // Define IPV6_ADD_MEMBERSHIP for FreeBSD and Mac OS X #ifndef IPV6_ADD_MEMBERSHIP