Processor definition check for __APPLE__ has a typo on replay (#32930)

old-commit-hash: 3c74ad145e
pull/33029/head
DevTekVE 1 year ago committed by GitHub
parent 2b873af75e
commit a981c26ed7
  1. 2
      tools/replay/util.cc

@ -323,7 +323,7 @@ void precise_nano_sleep(int64_t nanoseconds, std::atomic<bool> &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;

Loading…
Cancel
Save