From e9e5f57a2c9874575ca00d692f2f54d2dd1fec92 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Mon, 5 Jun 2017 10:51:09 -0400 Subject: [PATCH] Disable MSG_NOSIGNAL on systems not supporting it --- toxcore/TCP_server.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ #include #endif -#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MACH__) +// Disable MSG_NOSIGNAL on systems not supporting it, e.g. Windows, FreeBSD +#if !defined(MSG_NOSIGNAL) #define MSG_NOSIGNAL 0 #endif