summaryrefslogtreecommitdiffstats
path: root/third_party/leveldatabase
diff options
context:
space:
mode:
authorpeter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 23:22:28 +0000
committerpeter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 23:22:28 +0000
commit1ae9e42856ccffaaeafef3d9c5459e3d2457f05f (patch)
tree46ea7c959fbf8ad8b76d2d38027ce21cb24c0d2f /third_party/leveldatabase
parent9566d705ac052a5e70b3526379c9e6e84e2276c6 (diff)
downloadchromium_src-1ae9e42856ccffaaeafef3d9c5459e3d2457f05f.zip
chromium_src-1ae9e42856ccffaaeafef3d9c5459e3d2457f05f.tar.gz
chromium_src-1ae9e42856ccffaaeafef3d9c5459e3d2457f05f.tar.bz2
Add Android-specific platform guards to Chromium's LevelDB environment.
BUG= TEST= Review URL: http://codereview.chromium.org/7800012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/leveldatabase')
-rw-r--r--third_party/leveldatabase/env_chromium.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/leveldatabase/env_chromium.cc b/third_party/leveldatabase/env_chromium.cc
index 905c0df..dbd2046 100644
--- a/third_party/leveldatabase/env_chromium.cc
+++ b/third_party/leveldatabase/env_chromium.cc
@@ -30,7 +30,7 @@
#include "base/win/win_util.h"
#endif
-#if defined(OS_MACOSX) || defined(OS_WIN)
+#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_ANDROID)
// The following are glibc-specific
namespace {
@@ -46,6 +46,7 @@ int fflush_unlocked(FILE *file) {
return fflush(file);
}
+#if !defined(OS_ANDROID)
int fdatasync(int fildes) {
#if defined(OS_WIN)
return _commit(fildes);
@@ -53,6 +54,7 @@ int fdatasync(int fildes) {
return fsync(fildes);
#endif
}
+#endif
}
#endif