Commit f91c76f9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

config: Use fsync on Snow Leopard.

fdatasync is not exported. Fallback on fsync.
parent d848d8fd
......@@ -685,7 +685,11 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
*/
fflush (file); /* Flush from run-time */
#ifndef WIN32
#ifdef __APPLE__
fsync (fd); /* Flush from OS */
#else
fdatasync (fd); /* Flush from OS */
#endif
/* Atomically replace the file... */
if (utf8_rename (temporary, permanent))
utf8_unlink (temporary);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment