Skip to content

Commit 09a984a

Browse files
committed
MSG_NOSIGNAL is not available on macOS
1 parent 995fc89 commit 09a984a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

direwolf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ typedef pthread_mutex_t dw_mutex_t;
253253
// but always using send/recv makes more sense.
254254
// Need option to prevent a SIGPIPE signal on Linux. (added for 1.5 beta 2)
255255

256-
#if __WIN32__
256+
#if __WIN32__ || __APPLE__
257257
#define SOCK_SEND(s,data,size) send(s,data,size,0)
258258
#else
259259
#define SOCK_SEND(s,data,size) send(s,data,size, MSG_NOSIGNAL)

0 commit comments

Comments
 (0)