summaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index f7d25962..25788414 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3977,9 +3977,11 @@ MHD_queue_response (struct MHD_Connection *connection,
if ( (response->fd == -1) ||
(response->is_pipe) ||
(0 != (connection->daemon->options & MHD_USE_TLS))
-#if ! defined(MHD_WINSOCK_SOCKETS) && defined(HAVE_SEND_SIGPIPE_SUPPRESS)
+#if defined(MHD_SEND_SPIPE_SUPPRESS_NEEDED) && \
+ defined(MHD_SEND_SPIPE_SUPPRESS_POSSIBLE)
|| (! daemon->sigpipe_blocked && ! connection->sk_spipe_suppress)
-#endif /* ! MHD_WINSOCK_SOCKETS && ! HAVE_SEND_SIGPIPE_SUPPRESS */
+#endif /* MHD_SEND_SPIPE_SUPPRESS_NEEDED &&
+ MHD_SEND_SPIPE_SUPPRESS_POSSIBLE */
)
connection->resp_sender = MHD_resp_sender_std;
else