]> git.sesse.net Git - vlc/commitdiff
Don't use fdatasync on Android
authorSébastien Toque <xilasz@gmail.com>
Mon, 13 Jun 2011 15:25:54 +0000 (17:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 13 Jun 2011 15:28:51 +0000 (17:28 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/config/file.c

index 3872966cab395ece2759272b855efaa099d97aec..f0187b5947936e4982472748b2e76be9a4b20b5d 100644 (file)
@@ -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 */