vlc | branch: master | Sébastien Toque <[email protected]> | 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 <[email protected]>

> 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 */

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to