summaryrefslogtreecommitdiff
path: root/toxcore/TCP_server.h
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2014-04-13 04:01:38 -0700
committerSteven Noonan <steven@uplinklabs.net>2014-04-13 04:01:38 -0700
commitecf0ff3e7f4f5517ae1b66f01aec3325638f7761 (patch)
tree7b48a20eee351314992f198b112450d821f79f81 /toxcore/TCP_server.h
parent268172ec411d3b3717e6b4a5ef194e8ebf4b69bd (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.h2
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