[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/05: Fixed build without poll()
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/05: Fixed build without poll() |
Date: |
Fri, 23 Apr 2021 17:08:48 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 4049caeb1c53bf6de107e7e18ccf68a2cde84d86
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Apr 23 14:24:34 2021 +0300
Fixed build without poll()
---
src/microhttpd/daemon.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 1e5b7f1a..5e7bd384 100644
--- 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))
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (a55b52f0 -> 1683a563), gnunet, 2021/04/23
- [libmicrohttpd] 01/05: daemon: fixed build without HTTPS, gnunet, 2021/04/23
- [libmicrohttpd] 03/05: Fixed build without poll(),
gnunet <=
- [libmicrohttpd] 04/05: Fixed compiler warnings on x32, gnunet, 2021/04/23
- [libmicrohttpd] 05/05: Fixed compiler warning, gnunet, 2021/04/23
- [libmicrohttpd] 02/05: Fixed build with MSVC, fixed compiler warnings, gnunet, 2021/04/23