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
This commit is contained in:
ted.mielczarek 2009-12-23 20:44:32 +00:00
parent 0a5fc5d663
commit 9f211b4283

View File

@ -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)