summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2014-11-06 20:18:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-06 20:18:47 +0000
commit1e3339ea2d40fff16ef8cb154f7bb4146af0e59b (patch)
tree34382fe2492d2ee00d875914fb9f6be05fc6d035
parentbeb96e7eeffcb2964f9bba9b1428d60befedaf37 (diff)
parent729c1cfd39e859d6f5a24e1010959a382474592c (diff)
Merge "Move include of system headers outside namesapce."
-rw-r--r--runtime/base/mutex-inl.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/base/mutex-inl.h b/runtime/base/mutex-inl.h
index e066787bfd..0b13e312d3 100644
--- a/runtime/base/mutex-inl.h
+++ b/runtime/base/mutex-inl.h
@@ -26,16 +26,18 @@
#include "runtime.h"
#include "thread.h"
-namespace art {
-
-#define CHECK_MUTEX_CALL(call, args) CHECK_PTHREAD_CALL(call, args, name_)
-
#if ART_USE_FUTEXES
#include "linux/futex.h"
#include "sys/syscall.h"
#ifndef SYS_futex
#define SYS_futex __NR_futex
#endif
+#define CHECK_MUTEX_CALL(call, args) CHECK_PTHREAD_CALL(call, args, name_)
+#endif // ART_USE_FUTEXES
+
+namespace art {
+
+#if ART_USE_FUTEXES
static inline int futex(volatile int *uaddr, int op, int val, const struct timespec *timeout, volatile int *uaddr2, int val3) {
return syscall(SYS_futex, uaddr, op, val, timeout, uaddr2, val3);
}