MSG_NOSIGNAL is not available on macOS

This commit is contained in:
Josh Buhler 2018-04-03 19:54:34 -06:00
parent 995fc89866
commit 09a984a790
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ typedef pthread_mutex_t dw_mutex_t;
// but always using send/recv makes more sense.
// Need option to prevent a SIGPIPE signal on Linux. (added for 1.5 beta 2)
#if __WIN32__
#if __WIN32__ || __APPLE__
#define SOCK_SEND(s,data,size) send(s,data,size,0)
#else
#define SOCK_SEND(s,data,size) send(s,data,size, MSG_NOSIGNAL)