aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 20:44:32 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-12-23 20:44:32 +0000
commit9f211b428355c4f0cc8207431e823a25f805ebaa (patch)
tree5acdb974aae4befa40125180082aa6dab7cbdabb
parentIssue 357: New Linux file_id code doesn't persist across strip. r=agl,nealsid... (diff)
downloadbreakpad-9f211b428355c4f0cc8207431e823a25f805ebaa.tar.xz
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
-rw-r--r--src/client/linux/minidump_writer/linux_dumper.cc3
1 files changed, 3 insertions, 0 deletions
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)