From 09a984a79037dd5c763ca0031763a3c4c9ebc21e Mon Sep 17 00:00:00 2001 From: Josh Buhler Date: Tue, 3 Apr 2018 19:54:34 -0600 Subject: [PATCH] MSG_NOSIGNAL is not available on macOS --- direwolf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direwolf.h b/direwolf.h index 04f840b..514bcc5 100644 --- a/direwolf.h +++ b/direwolf.h @@ -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)