Always define noop MSG_NOSIGNAL, if not available in headers.

This commit is contained in:
Bartosz Taudul 2017-11-02 11:31:54 +01:00
parent 85da864aa6
commit af39dd4921

View File

@ -17,11 +17,14 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif
namespace tracy namespace tracy
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
# define MSG_NOSIGNAL 0
struct __wsinit struct __wsinit
{ {
__wsinit() __wsinit()
@ -40,7 +43,6 @@ static __wsinit InitWinSock()
static __wsinit init; static __wsinit init;
return init; return init;
} }
#endif #endif
Socket::Socket() Socket::Socket()