diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-04 07:23:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-04 07:23:08 +0100 |
commit | 9d0a7d7b982e59b1845ae3e65bee22be0c9bb7d3 (patch) | |
tree | 5d5dd8c2c843e37d2f28f94b5c9e2f50c2ce935e /contrib | |
parent | 6d1b3de6fe3fdcc2deb7fcc3ebb1ba12aceb6893 (diff) | |
download | rspamd-9d0a7d7b982e59b1845ae3e65bee22be0c9bb7d3.tar.gz rspamd-9d0a7d7b982e59b1845ae3e65bee22be0c9bb7d3.zip |
[Minor] Fix build on systems with no monotonic clock
Issue: #4478
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libev/ev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c index 591a8cc8e..8657aa96e 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; |