summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/libev/no_monotonic.diff
blob: 382c241efdd46dc5dacdba621ea43404bad71c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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)
               {