diff --git a/src/common/linux/memory_mapped_file.cc b/src/common/linux/memory_mapped_file.cc index 32fc3b18..47b7eb0b 100644 --- a/src/common/linux/memory_mapped_file.cc +++ b/src/common/linux/memory_mapped_file.cc @@ -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