From 01df8861c19a203cea9ef26570893c2b9c0e48b2 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Wed, 12 Apr 2017 21:11:28 +0300 Subject: [PATCH] Fixed GNU/Linux builds without epoll --- src/microhttpd/daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 49a1b828..02713e3a 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -2251,8 +2251,10 @@ send_param_adapter (struct MHD_Connection *connection, if (0 < ret) { /* write successful */ +#ifdef EPOLL_SUPPORT if (left > (uint64_t)ret) connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY; +#endif /* EPOLL_SUPPORT */ return ret; } err = MHD_socket_get_error_();