Skip to content

Commit 14dd107

Browse files
author
sf-exg
committed
Fix build on systems that lack clock_gettime
1 parent 59ecdef commit 14dd107

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ev.c

+2
Original file line numberDiff line numberDiff line change
@@ -4094,6 +4094,7 @@ ev_run (EV_P_ int flags)
40944094
{
40954095
waittime = EV_TS_CONST (MAX_BLOCKTIME);
40964096

4097+
#if EV_USE_MONOTONIC
40974098
if (ecb_expect_true (have_monotonic))
40984099
{
40994100
#if EV_USE_TIMERFD
@@ -4107,6 +4108,7 @@ ev_run (EV_P_ int flags)
41074108
waittime = EV_TS_CONST (MAX_BLOCKTIME2);
41084109
#endif
41094110
}
4111+
#endif
41104112

41114113
if (timercnt)
41124114
{

0 commit comments

Comments
 (0)