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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index 8663edd3..62ea46d5 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -162,6 +162,12 @@
162# define MAYBE_SOCK_NONBLOCK 0 162# define MAYBE_SOCK_NONBLOCK 0
163#endif /* ! HAVE_SOCK_NONBLOCK */ 163#endif /* ! HAVE_SOCK_NONBLOCK */
164 164
165#ifdef SOCK_NOSIGPIPE
166# define MAYBE_SOCK_NOSIGPIPE SOCK_NOSIGPIPE
167#else /* ! HAVE_SOCK_NONBLOCK */
168# define MAYBE_SOCK_NOSIGPIPE 0
169#endif /* ! HAVE_SOCK_NONBLOCK */
170
165#ifdef MSG_NOSIGNAL 171#ifdef MSG_NOSIGNAL
166# define MAYBE_MSG_NOSIGNAL MSG_NOSIGNAL 172# define MAYBE_MSG_NOSIGNAL MSG_NOSIGNAL
167#else /* ! MSG_NOSIGNAL */ 173#else /* ! MSG_NOSIGNAL */
@@ -178,7 +184,7 @@
178# define SHUT_RDWR SD_BOTH 184# define SHUT_RDWR SD_BOTH
179#endif 185#endif
180 186
181#if HAVE_ACCEPT4+0 != 0 && (defined(HAVE_SOCK_NONBLOCK) || defined(SOCK_CLOEXEC)) 187#if HAVE_ACCEPT4+0 != 0 && (defined(HAVE_SOCK_NONBLOCK) || defined(SOCK_CLOEXEC) || defined(SOCK_NOSIGPIPE))
182# define USE_ACCEPT4 1 188# define USE_ACCEPT4 1
183#endif 189#endif
184 190