aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-09-10 13:14:48 +0000
committerted.mielczarek@gmail.com <ted.mielczarek@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-09-10 13:14:48 +0000
commitba7e0d9657d11a9ebe592157648ab8ec98762033 (patch)
treed53a4e939da4f742b80fb5bbf750761bd41155bd
parentUpdate linux_syscall_support to r12. (diff)
downloadbreakpad-ba7e0d9657d11a9ebe592157648ab8ec98762033.tar.xz
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
-rw-r--r--src/common/linux/memory_mapped_file.cc5
1 files changed, 1 insertions, 4 deletions
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