mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
12 lines
447 B
Diff
12 lines
447 B
Diff
--- 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);
|