commit | e89385743e30fdbcb7ccf87caff71b354872922b | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Oct 11 03:50:26 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 11 03:50:28 2016 +0000 |
tree | 4381a4b919193d2b5e207b8dd3ccfbe2c86e9419 | |
parent | c3e09e1ff093279ae247112527e3dd16ab0d0809 [diff] | |
parent | ffbb0f8aa4d7c8ec166722a0276a9703898f9c3f [diff] |
Merge "Fix Mac build."
diff --git a/tests/utils.h b/tests/utils.h index 4391f41..c62da75 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 @@ extern "C" pid_t gettid(); +#endif + static inline void WaitUntilThreadSleep(std::atomic<pid_t>& tid) { while (tid == 0) { usleep(1000);