Merge "Fix Mac build."
This commit is contained in:
commit
e89385743e
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue