--- a/ev.c 2020-03-18 08:27:32.000000000 -0400 +++ b/ev.c 2024-01-16 15:42:39.360703755 -0400 @@ -4100,11 +4085,13 @@ waittime = EV_TS_CONST (MAX_BLOCKTIME2); #endif #if !EV_PERIODIC_ENABLE +#if EV_USE_MONOTONIC /* without periodics but with monotonic clock there is no need */ /* for any time jump detection, so sleep longer */ if (ecb_expect_true (have_monotonic)) waittime = EV_TS_CONST (MAX_BLOCKTIME2); #endif +#endif if (timercnt) {