OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3e09e1
)
Fix Mac build.
author
Elliott Hughes
<enh@google.com>
Tue, 11 Oct 2016 01:34:27 +0000
(18:34 -0700)
committer
Elliott Hughes
<enh@google.com>
Tue, 11 Oct 2016 01:38:25 +0000
(18:38 -0700)
Test: builds on Linux (I don't have a Mac)
Change-Id: I049e1d6420b0d169e727680da9c3d97e0b8aa3d2
tests/utils.h
patch
|
blob
|
history
diff --git
a/tests/utils.h
b/tests/utils.h
index
4391f41
..
c62da75
100644
(file)
--- 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<pid_t>& tid) {
while (tid == 0) {
usleep(1000);