mirror of https://github.com/wb2osz/direwolf.git
MSG_NOSIGNAL is not available on macOS
This commit is contained in:
parent
995fc89866
commit
09a984a790
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue