[vlc-commits] Don't use fdatasync on Android
Sébastien Toque
git at videolan.org
Mon Jun 13 17:35:26 CEST 2011
vlc | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Jun 13 17:25:54 2011 +0200| [61aec26f3ba6c52f20208a1fa5ff94254ea3a911] | committer: Jean-Baptiste Kempf
Don't use fdatasync on Android
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61aec26f3ba6c52f20208a1fa5ff94254ea3a911
---
src/config/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/config/file.c b/src/config/file.c
index 3872966..f0187b5 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -578,7 +578,7 @@ static int SaveConfigFile (vlc_object_t *p_this)
goto error;
}
#if !defined( WIN32 ) && !defined( __OS2__ )
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__ANDROID__)
fsync (fd); /* Flush from OS */
#else
fdatasync (fd); /* Flush from OS */
More information about the vlc-commits
mailing list