From 270f195c358f0f1e5a48132698d6e215377f093e Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Tue, 11 Jul 2023 09:59:29 +0800 Subject: [PATCH] timer.c++: do not require monotonic time on PPC too --- c++/src/kj/timer.c++ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git c++/src/kj/timer.c++ c++/src/kj/timer.c++ index e5cd2648..dbd66cf3 100644 --- src/kj/timer.c++ +++ src/kj/timer.c++ @@ -114,7 +114,7 @@ void TimerImpl::advanceTo(TimePoint newTime) { // may return non monotonic time, even when CLOCK_MONOTONIC is used. // This workaround is to avoid the assert triggering on these machines. // See also https://github.com/capnproto/capnproto/issues/1693 -#if __APPLE__ && defined(__x86_64__) +#if __APPLE__ && (defined(__x86_64__) || defined(__POWERPC__)) time = std::max(time, newTime); #else KJ_REQUIRE(newTime >= time, "can't advance backwards in time") { return; }