From af39dd4921cbd31ddc7960eb8feee3ee7c10c245 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 2 Nov 2017 11:31:54 +0100 Subject: [PATCH] Always define noop MSG_NOSIGNAL, if not available in headers. --- common/TracySocket.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index f82db783..073afcbb 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -17,11 +17,14 @@ # include #endif +#ifndef MSG_NOSIGNAL +# define MSG_NOSIGNAL 0 +#endif + namespace tracy { #ifdef _MSC_VER -# define MSG_NOSIGNAL 0 struct __wsinit { __wsinit() @@ -40,7 +43,6 @@ static __wsinit InitWinSock() static __wsinit init; return init; } - #endif Socket::Socket()