summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-06-05 10:51:09 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2017-08-22 04:10:45 -0400
commite9e5f57a2c9874575ca00d692f2f54d2dd1fec92 (patch)
treea838c310fa13c3be52d147b269dcf6dcf158b02e /toxcore
parent8dc261fcf2cd725f36f2aefea3d35143a2845cdc (diff)
Disable MSG_NOSIGNAL on systems not supporting it
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/TCP_server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index ddb204c2..f213c078 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -32,7 +32,8 @@
32#include <sys/epoll.h> 32#include <sys/epoll.h>
33#endif 33#endif
34 34
35#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MACH__) 35// Disable MSG_NOSIGNAL on systems not supporting it, e.g. Windows, FreeBSD
36#if !defined(MSG_NOSIGNAL)
36#define MSG_NOSIGNAL 0 37#define MSG_NOSIGNAL 0
37#endif 38#endif
38 39