mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 06:14:21 +01:00
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:
parent
0a5fc5d663
commit
9f211b4283
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user