diff options
author | ohrn@opera.com <ohrn@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 19:19:50 +0000 |
---|---|---|
committer | ohrn@opera.com <ohrn@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 19:19:50 +0000 |
commit | 939e2b18f54dd8be5c0ec34344a9e33ee20d3ba6 (patch) | |
tree | 26b15596fba2d972da4d30dddcb2094bfd15e6e5 /third_party | |
parent | a8a5907d81ba1ed4b5d91dfefdee2089c21d05ba (diff) | |
download | chromium_src-939e2b18f54dd8be5c0ec34344a9e33ee20d3ba6.zip chromium_src-939e2b18f54dd8be5c0ec34344a9e33ee20d3ba6.tar.gz chromium_src-939e2b18f54dd8be5c0ec34344a9e33ee20d3ba6.tar.bz2 |
Fix missing SYS_mmap when building Android on x86.
Review URL: https://codereview.chromium.org/24560002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 ee36efb..8b8b4ad 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 |