From a981c26ed78a59541b4230002e9243c9a0d09f34 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Mon, 8 Jul 2024 19:10:26 +0200 Subject: [PATCH] Processor definition check for __APPLE__ has a typo on replay (#32930) old-commit-hash: 3c74ad145e0145429d782219ac255a26aa2f6135 --- tools/replay/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/replay/util.cc b/tools/replay/util.cc index a08b3b3d5e..aaf73749d5 100644 --- a/tools/replay/util.cc +++ b/tools/replay/util.cc @@ -323,7 +323,7 @@ void precise_nano_sleep(int64_t nanoseconds, std::atomic &should_exit) { req.tv_sec = nanoseconds / 1000000000; req.tv_nsec = nanoseconds % 1000000000; while (!should_exit) { -#ifdef __APPLE_ +#ifdef __APPLE__ int ret = nanosleep(&req, &rem); if (ret == 0 || errno != EINTR) break;