Commit 3af15a6e authored by Dominik Charousset's avatar Dominik Charousset

Remove SO_NOSIGPIPE/MSG_NOSIGNAL on MinGW

parent 095c932a
......@@ -45,9 +45,11 @@ using std::string;
namespace {
#ifdef CAF_MACOS
constexpr int no_sigpipe_flag = SO_NOSIGPIPE;
#else
constexpr int no_sigpipe_flag = MSG_NOSIGNAL;
constexpr int no_sigpipe_flag = SO_NOSIGPIPE;
#elif defined(CAF_WINDOWS)
constexpr int no_sigpipe_flag = 0; // does not exist on Windows
#else // BSD or Linux
constexpr int no_sigpipe_flag = MSG_NOSIGNAL;
#endif
} // namespace <anonymous>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment