From 4da88182912e9e4cf2bc2532309943b9c3c018f9 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 16 Jan 2014 21:08:17 +0100 Subject: Fixed SIGPIPE on cSocket::Send(). --- src/OSSupport/Socket.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/OSSupport/Socket.h') diff --git a/src/OSSupport/Socket.h b/src/OSSupport/Socket.h index 81bfd28fc..b86560de8 100644 --- a/src/OSSupport/Socket.h +++ b/src/OSSupport/Socket.h @@ -5,6 +5,18 @@ +// Windows and MacOSX don't have the MSG_NOSIGNAL flag +#if ( \ + defined(_WIN32) || \ + (defined(__APPLE__) && defined(__MACH__)) \ +) + #define MSG_NOSIGNAL (0) +#endif + + + + + class cSocket { public: -- cgit v1.2.3