libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4049caeb1c53bf6de107e7e18ccf68a2cde84d86
parent ba5174d48808a07c442af67274c2364998caeb2b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 23 Apr 2021 14:24:34 +0300

Fixed build without poll()

Diffstat:
Msrc/microhttpd/daemon.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -5143,11 +5143,17 @@ MHD_run_wait (struct MHD_Daemon *daemon, if (0 > millisec) millisec = -1; - if (0 != (daemon->options & MHD_USE_POLL)) + if (false) + { + (void) 0; /* Mute compiler warning */ + } +#ifdef HAVE_POLL + else if (0 != (daemon->options & MHD_USE_POLL)) { res = MHD_poll_all (daemon, millisec); MHD_cleanup_connections (daemon); } +#endif /* HAVE_POLL */ #ifdef EPOLL_SUPPORT else if (0 != (daemon->options & MHD_USE_EPOLL)) {