From: Vsevolod Stakhov Date: Thu, 4 May 2023 06:23:08 +0000 (+0100) Subject: [Minor] Fix build on systems with no monotonic clock X-Git-Tag: 3.6~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d0a7d7b982e59b1845ae3e65bee22be0c9bb7d3;p=thirdparty%2Frspamd.git [Minor] Fix build on systems with no monotonic clock Issue: #4478 --- diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c index 591a8cc8ee..8657aa96ee 100644 --- a/contrib/libev/ev.c +++ b/contrib/libev/ev.c @@ -4130,6 +4130,7 @@ ev_run (EV_P_ int flags) if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) { waittime = EV_TS_CONST (MAX_BLOCKTIME); +#if EV_USE_MONOTONIC if (ecb_expect_true (have_monotonic)) { #if EV_USE_TIMERFD /* sleep a lot longer when we can reliably detect timejumps */ @@ -4143,7 +4144,7 @@ ev_run (EV_P_ int flags) waittime = EV_TS_CONST (MAX_BLOCKTIME2); #endif } - +#endif /* EV_USE_MONOTONIC */ if (timercnt) { ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now;