mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-27 23:04:19 +01:00
Use sys_fstat64 on Android
R=digit at https://breakpad.appspot.com/414002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1033 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
878a9bea61
commit
ba7e0d9657
@ -62,10 +62,7 @@ bool MemoryMappedFile::Map(const char* path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
struct stat st;
|
||||
if (fstat(fd, &st) != 0) {
|
||||
#elif defined(__x86_64__)
|
||||
#if defined(__x86_64__)
|
||||
struct kernel_stat st;
|
||||
if (sys_fstat(fd, &st) == -1 || st.st_size < 0) {
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user