Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MSG_NOSIGNAL is not available on macOS
  • Loading branch information
jbuhler-c4 committed Apr 4, 2018
commit 09a984a79037dd5c763ca0031763a3c4c9ebc21e
2 changes: 1 addition & 1 deletion direwolf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down