ソースを参照

[Minor] Fix build on systems with no monotonic clock

Issue: #4478
tags/3.6
Vsevolod Stakhov 1年前
コミット
9d0a7d7b98
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加1行の削除
  1. 2
    1
      contrib/libev/ev.c

+ 2
- 1
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;

読み込み中…
キャンセル
保存