diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 00:02:04 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 00:02:04 +0000 |
commit | 4cc7027434204784572b44dd0546678d560f2d61 (patch) | |
tree | 9122c191a7a09786526f7dc17bb7136d0bea1a55 /breakpad/linux/memory.h | |
parent | 5e26030d358f16265cf80d3ed387ed51d0d1abec (diff) | |
download | chromium_src-4cc7027434204784572b44dd0546678d560f2d61.zip chromium_src-4cc7027434204784572b44dd0546678d560f2d61.tar.gz chromium_src-4cc7027434204784572b44dd0546678d560f2d61.tar.bz2 |
Build breakpad / crash reporting on Linux 64-bit.
Review URL: http://codereview.chromium.org/165493
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'breakpad/linux/memory.h')
-rw-r--r-- | breakpad/linux/memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/breakpad/linux/memory.h b/breakpad/linux/memory.h index e6947a1..94e2175 100644 --- a/breakpad/linux/memory.h +++ b/breakpad/linux/memory.h @@ -86,8 +86,13 @@ class PageAllocator { private: uint8_t *GetNPages(unsigned num_pages) { +#ifdef __x86_64 + void *a = sys_mmap(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); +#else void *a = sys_mmap2(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); +#endif if (a == MAP_FAILED) return NULL; |