Skip to content

Commit

Permalink
Update udpSocket.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
daid authored Nov 6, 2024
1 parent 091f679 commit 0c3a9e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/io/network/udpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ static inline int sendto(SOCKET s, const void* msg, size_t len, int flags, const
#include <arpa/inet.h>
#include <string.h>
#include <netdb.h>
#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
Expand Down

0 comments on commit 0c3a9e3

Please sign in to comment.