Merge "Fix Mac build."

This commit is contained in:
Elliott Hughes 2016-10-11 03:50:26 +00:00 committed by Gerrit Code Review
commit e89385743e

View file

@ -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<pid_t>& tid) {
while (tid == 0) {
usleep(1000);