Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3154)

Unified Diff: base/sys_info_posix.cc

Issue 7184032: Upstream android file related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« base/shared_memory_posix.cc ('K') | « base/shared_memory_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_posix.cc
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index d635eb4ada73c98e57f8b61547e396d0daf0ce28..2f86eff5be7702acbde97a409a551aecb30917e9 100644
--- a/base/sys_info_posix.cc
+++ b/base/sys_info_posix.cc
@@ -7,8 +7,13 @@
#include <errno.h>
#include <string.h>
#include <sys/param.h>
+#if defined(OS_ANDROID)
joth 2011/06/17 11:25:54 this is unreliable as we may not have included bas
michaelbai 2011/06/17 22:41:29 Done.
+#include <sys/vfs.h>
+#define statvfs statfs // Android uses a statvfs-like statfs struct and call.
+#else
#include <sys/statvfs.h>
#include <sys/sysctl.h>
+#endif
#include <sys/utsname.h>
#include <unistd.h>
« base/shared_memory_posix.cc ('K') | « base/shared_memory_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698