diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-23 14:24:34 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-23 18:05:36 +0300 |
commit | 4049caeb1c53bf6de107e7e18ccf68a2cde84d86 (patch) | |
tree | 322bc4a5900f0fb16c2d02715ccd3bf875c2fce6 /src/microhttpd/daemon.c | |
parent | ba5174d48808a07c442af67274c2364998caeb2b (diff) | |
download | libmicrohttpd-4049caeb1c53bf6de107e7e18ccf68a2cde84d86.tar.gz libmicrohttpd-4049caeb1c53bf6de107e7e18ccf68a2cde84d86.zip |
Fixed build without poll()
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
1 files changed, 7 insertions, 1 deletions
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, | |||
5143 | 5143 | ||
5144 | if (0 > millisec) | 5144 | if (0 > millisec) |
5145 | millisec = -1; | 5145 | millisec = -1; |
5146 | if (0 != (daemon->options & MHD_USE_POLL)) | 5146 | if (false) |
5147 | { | ||
5148 | (void) 0; /* Mute compiler warning */ | ||
5149 | } | ||
5150 | #ifdef HAVE_POLL | ||
5151 | else if (0 != (daemon->options & MHD_USE_POLL)) | ||
5147 | { | 5152 | { |
5148 | res = MHD_poll_all (daemon, millisec); | 5153 | res = MHD_poll_all (daemon, millisec); |
5149 | MHD_cleanup_connections (daemon); | 5154 | MHD_cleanup_connections (daemon); |
5150 | } | 5155 | } |
5156 | #endif /* HAVE_POLL */ | ||
5151 | #ifdef EPOLL_SUPPORT | 5157 | #ifdef EPOLL_SUPPORT |
5152 | else if (0 != (daemon->options & MHD_USE_EPOLL)) | 5158 | else if (0 != (daemon->options & MHD_USE_EPOLL)) |
5153 | { | 5159 | { |