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.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index e8cabc19..fbdb2f11 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -924,9 +924,20 @@ static const int _MHD_socket_int_one = 1;
924#define MHD_socket_nosignal_(sock) \ 924#define MHD_socket_nosignal_(sock) \
925 (! setsockopt ((sock),SOL_SOCKET,SO_NOSIGPIPE,&_MHD_socket_int_one, \ 925 (! setsockopt ((sock),SOL_SOCKET,SO_NOSIGPIPE,&_MHD_socket_int_one, \
926 sizeof(_MHD_socket_int_one))) 926 sizeof(_MHD_socket_int_one)))
927#elif defined(MHD_POSIX_SOCKETS) && defined(SOCK_NOSIGPIPE) && \ 927#endif /* SOL_SOCKET && SO_NOSIGPIPE */
928 defined(SOCK_CLOEXEC) 928
929#endif 929
930#if defined(MHD_WINSOCK_SOCKETS) || defined(MHD_socket_nosignal_) || \
931 defined(MSG_NOSIGNAL)
932/**
933 * Indicate that SIGPIPE can be suppressed for normal send() by flags
934 * or socket options.
935 * If this macro is undefined, MHD cannot suppress SIGPIPE for normal
936 * processing so sendfile() or writev() calls is not avoided.
937 */
938#define HAVE_SEND_SIGPIPE_SUPPRESS 1
939#endif /* MHD_WINSOCK_SOCKETS || MHD_socket_nosignal_ || MSG_NOSIGNAL */
940
930 941
931/** 942/**
932 * Create a listen socket, with noninheritable flag if possible. 943 * Create a listen socket, with noninheritable flag if possible.
@@ -937,4 +948,5 @@ static const int _MHD_socket_int_one = 1;
937MHD_socket 948MHD_socket
938MHD_socket_create_listen_ (int pf); 949MHD_socket_create_listen_ (int pf);
939 950
951
940#endif /* ! MHD_SOCKETS_H */ 952#endif /* ! MHD_SOCKETS_H */