diff options
author | Steven Noonan <steven@uplinklabs.net> | 2014-04-13 04:01:38 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2014-04-13 04:01:38 -0700 |
commit | ecf0ff3e7f4f5517ae1b66f01aec3325638f7761 (patch) | |
tree | 7b48a20eee351314992f198b112450d821f79f81 /toxcore/TCP_server.h | |
parent | 268172ec411d3b3717e6b4a5ef194e8ebf4b69bd (diff) |
sockets: support Mac OS X way of disabling SIGPIPE on a socket
Mac OS X doesn't have MSG_NOSIGNAL, so we need to use SO_NOSIGPIPE.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 57313038..498b1147 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "net_crypto.h" | 26 | #include "net_crypto.h" |
27 | #include "onion.h" | 27 | #include "onion.h" |
28 | 28 | ||
29 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 29 | #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MACH__) |
30 | #define MSG_NOSIGNAL 0 | 30 | #define MSG_NOSIGNAL 0 |
31 | #endif | 31 | #endif |
32 | 32 | ||