Przeglądaj źródła

[Minor] Fix build on systems with no monotonic clock

Issue: #4478
tags/3.6
Vsevolod Stakhov 1 rok temu
rodzic
commit
9d0a7d7b98
No account linked to committer's email address
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      contrib/libev/ev.c

+ 2
- 1
contrib/libev/ev.c Wyświetl plik

if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped))) if (ecb_expect_true (!(flags & EVRUN_NOWAIT || idleall || !activecnt || pipe_write_skipped)))
{ {
waittime = EV_TS_CONST (MAX_BLOCKTIME); waittime = EV_TS_CONST (MAX_BLOCKTIME);
#if EV_USE_MONOTONIC
if (ecb_expect_true (have_monotonic)) { if (ecb_expect_true (have_monotonic)) {
#if EV_USE_TIMERFD #if EV_USE_TIMERFD
/* sleep a lot longer when we can reliably detect timejumps */ /* sleep a lot longer when we can reliably detect timejumps */
waittime = EV_TS_CONST (MAX_BLOCKTIME2); waittime = EV_TS_CONST (MAX_BLOCKTIME2);
#endif #endif
} }
#endif /* EV_USE_MONOTONIC */
if (timercnt) if (timercnt)
{ {
ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now; ev_tstamp to = ANHE_at (timers [HEAP0]) - mn_now;

Ładowanie…
Anuluj
Zapisz