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