From 9f211b428355c4f0cc8207431e823a25f805ebaa Mon Sep 17 00:00:00 2001 From: "ted.mielczarek" Date: Wed, 23 Dec 2009 20:44:32 +0000 Subject: [PATCH] fix compilation on 64-bit, followup from issue 357 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@463 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/minidump_writer/linux_dumper.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/linux/minidump_writer/linux_dumper.cc b/src/client/linux/minidump_writer/linux_dumper.cc index d752608d..41929b8a 100644 --- a/src/client/linux/minidump_writer/linux_dumper.cc +++ b/src/client/linux/minidump_writer/linux_dumper.cc @@ -175,6 +175,9 @@ LinuxDumper::ElfFileIdentifierForMapping(unsigned int mapping_id, sys_close(fd); return false; } +#if defined(__x86_64) +#define sys_mmap2 sys_mmap +#endif void* base = sys_mmap2(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); sys_close(fd); if (base == MAP_FAILED)