Commit 1ae9e428 authored by peter@chromium.org's avatar peter@chromium.org

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
parent 9566d705
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment