Index: third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h |
diff --git a/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h b/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h |
index ee36efb46130dc209a46271b44c4c051f68068bb..8b8b4ad579a69022e829bf848eace297c4de8cc5 100644 |
--- a/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h |
+++ b/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h |
@@ -54,6 +54,9 @@ |
// SYS_mmap2, SYS_munmap, SYS_mremap and __off64_t are not defined in Android. |
#if defined(__ANDROID__) |
+#if defined(__NR_mmap) && !defined(SYS_mmap) |
+#define SYS_mmap __NR_mmap |
+#endif |
#ifndef SYS_mmap2 |
#define SYS_mmap2 __NR_mmap2 |
#endif |