summaryrefslogtreecommitdiffstats
path: root/runtime/mem_map.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-06-23 14:07:03 -0700
committerIan Rogers <irogers@google.com>2014-06-23 14:07:03 -0700
commitd6b6865cf787be8e4548e018762e72c7d1a40e52 (patch)
treeeb47470092a7a7ecefbf23dd008103a1e74945cc /runtime/mem_map.cc
parentbe781e55b86ddd2dacf12b80a26fa9a5612948c3 (diff)
downloadart-d6b6865cf787be8e4548e018762e72c7d1a40e52.tar.gz
art-d6b6865cf787be8e4548e018762e72c7d1a40e52.tar.bz2
art-d6b6865cf787be8e4548e018762e72c7d1a40e52.zip
Mac doesn't define MAP_ANONYMOUS
Fix mac build. Change-Id: I607e8fff227259fbf27e468193a705c8c3fc1b59
Diffstat (limited to 'runtime/mem_map.cc')
-rw-r--r--runtime/mem_map.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc
index 6c1c86765c..8d987dfd9a 100644
--- a/runtime/mem_map.cc
+++ b/runtime/mem_map.cc
@@ -39,6 +39,10 @@
#endif
#endif
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
namespace art {
static std::ostream& operator<<(