Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
daid committed Nov 6, 2024
2 parents c72caf0 + af1daf4 commit a1174ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/io/network/tcpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ static inline int recv(SOCKET s, void* buf, size_t len, int flags)
#include <arpa/inet.h>
#include <string.h>
#include <poll.h>
#if defined(__APPLE__)
static constexpr int flags = 0;
#else
static constexpr int flags = MSG_NOSIGNAL;
#endif
static constexpr intptr_t INVALID_SOCKET = -1;
#endif

Expand Down
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 a1174ef

Please sign in to comment.