Fixed SIGPIPE on cSocket::Send().
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user