--- a/src/ini.cpp
+++ b/src/ini.cpp
@@ -84,7 +84,7 @@
  * APIs to do so. We only need to flush the data as the metadata itself
  * (modification date etc.) is not important to us; only the real data is.
  */
-#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0
+#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0 && !defined(__ANDROID__)
 	int f = open(file_new.c_str(), O_RDWR);
 	int ret = fdatasync(f);
 	close(f);
