From ba7e0d9657d11a9ebe592157648ab8ec98762033 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Mon, 10 Sep 2012 13:14:48 +0000 Subject: 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 --- src/common/linux/memory_mapped_file.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/common/linux/memory_mapped_file.cc') 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 -- cgit v1.2.1