aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-14 15:42:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-06-20 23:22:53 +0300
commit4b8fb0700b8671d1d92100285632e2671703c0f5 (patch)
treec15185ac8f4ce53da7d773df4bc07262f5c956df /src/microhttpd/internal.h
parentdce208464a89dfe8e72a4bc4e7aa6b0c8b2563bf (diff)
downloadlibmicrohttpd-4b8fb0700b8671d1d92100285632e2671703c0f5.tar.gz
libmicrohttpd-4b8fb0700b8671d1d92100285632e2671703c0f5.zip
daemon: added debug member to avoid accept4() usage
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 0ea0953e..651e6170 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -2416,6 +2416,18 @@ struct MHD_Daemon
2416 * The value to be returned by #MHD_get_daemon_info() 2416 * The value to be returned by #MHD_get_daemon_info()
2417 */ 2417 */
2418 union MHD_DaemonInfo daemon_info_dummy_port; 2418 union MHD_DaemonInfo daemon_info_dummy_port;
2419
2420#if defined(_DEBUG) && defined(HAVE_ACCEPT4)
2421 /**
2422 * If set to 'true', accept() function will be used instead of accept4() even
2423 * if accept4() is available.
2424 * This is a workaround for zzuf, which does not support sockets created
2425 * by accept4() function.
2426 * There is no API to change the value of this member, it can be flipped
2427 * only by direct access to the struct member.
2428 */
2429 bool avoid_accept4;
2430#endif /* _DEBUG */
2419}; 2431};
2420 2432
2421 2433