aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_sockets.h')
-rw-r--r--src/microhttpd/mhd_sockets.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index d4f21690..c22a1b12 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -934,17 +934,22 @@ static const int _MHD_socket_int_one = 1;
934#endif /* SOL_SOCKET && SO_NOSIGPIPE */ 934#endif /* SOL_SOCKET && SO_NOSIGPIPE */
935 935
936 936
937#if defined(MHD_WINSOCK_SOCKETS) || defined(MHD_socket_nosignal_) || \ 937#if defined(MHD_socket_nosignal_) || defined(MSG_NOSIGNAL)
938 defined(MSG_NOSIGNAL)
939/** 938/**
940 * Indicate that SIGPIPE can be suppressed for normal send() by flags 939 * Indicate that SIGPIPE can be suppressed by MHD for normal send() by flags
941 * or socket options. 940 * or socket options.
942 * If this macro is undefined, MHD cannot suppress SIGPIPE for normal 941 * If this macro is undefined, MHD cannot suppress SIGPIPE for normal
943 * processing so sendfile() or writev() calls is not avoided. 942 * processing so sendfile() or writev() calls is not avoided.
944 */ 943 */
945#define HAVE_SEND_SIGPIPE_SUPPRESS 1 944#define MHD_SEND_SPIPE_SUPPRESS_POSSIBLE 1
946#endif /* MHD_WINSOCK_SOCKETS || MHD_socket_nosignal_ || MSG_NOSIGNAL */ 945#endif /* MHD_WINSOCK_SOCKETS || MHD_socket_nosignal_ || MSG_NOSIGNAL */
947 946
947#if ! defined(MHD_WINSOCK_SOCKETS)
948/**
949 * Indicate that suppression of SIGPIPE is required.
950 */
951#define MHD_SEND_SPIPE_SUPPRESS_NEEDED 1
952#endif
948 953
949/** 954/**
950 * Create a listen socket, with noninheritable flag if possible. 955 * Create a listen socket, with noninheritable flag if possible.