commit 5da716e8c2267a1b8a2fe82506e872c8491645c2 parent 79c57fad8d5d225573fa1277f72211e511a4564a Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Thu, 25 May 2023 13:22:58 +0300 Fixed compiler warning when built without poll() support Diffstat:
| M | src/microhttpd/daemon.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -4139,6 +4139,7 @@ MHD_get_timeout64 (struct MHD_Daemon *daemon, } +#if defined(HAVE_POLL) || defined(EPOLL_SUPPORT) /** * Obtain timeout value for external polling function for this daemon. * @@ -4301,6 +4302,8 @@ get_timeout_millisec_int (struct MHD_Daemon *daemon, } +#endif /* HAVE_POLL || EPOLL_SUPPORT */ + /** * Internal version of #MHD_run_from_select(). *