summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stream_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp
index a4df7f3..15b566b 100644
--- a/src/stream_engine.cpp
+++ b/src/stream_engine.cpp
@@ -78,7 +78,7 @@ xs::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_) :
#endif
}
-#if defined XS_HAVE_OSX || defined XS_HAVE_FREEBSD
+#ifdef SO_NOSIGPIPE
// Make sure that SIGPIPE signal is not generated when writing to a
// connection that was already closed by the peer.
int set = 1;