From ffbb0f8aa4d7c8ec166722a0276a9703898f9c3f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Oct 2016 18:34:27 -0700 Subject: [PATCH] Fix Mac build. Test: builds on Linux (I don't have a Mac) Change-Id: I049e1d6420b0d169e727680da9c3d97e0b8aa3d2 --- tests/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/utils.h b/tests/utils.h index 4391f41e3..c62da758e 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -32,6 +32,8 @@ #include "private/ScopeGuard.h" +#if defined(__linux__) + struct map_record { uintptr_t addr_start; uintptr_t addr_end; @@ -95,6 +97,8 @@ class Maps { extern "C" pid_t gettid(); +#endif + static inline void WaitUntilThreadSleep(std::atomic& tid) { while (tid == 0) { usleep(1000);