summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/perf.h b/perf.h
index 712bbc730858..1a0a8de32a6a 100644
--- a/perf.h
+++ b/perf.h
@@ -18,7 +18,13 @@ void get_term_dimensions(struct winsize *ws);
#endif
#if defined(__x86_64__)
+/* ANDROID_CHANGE_BEGIN */
+#if 0
#include "../../arch/x86/include/asm/unistd.h"
+#elif !defined(__APPLE__)
+#include <asm/unistd.h>
+#endif
+/* ANDROID_CHANGE_END */
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif