Commit 4e59750a authored by Tor Lillqvist's avatar Tor Lillqvist

No fsync on Windows

parent 290ecb0a
......@@ -1441,8 +1441,10 @@ safe_fclose (FILE *f)
g_assert (fd >= 0);
if (fflush (f) == EOF)
return FALSE;
#ifndef G_OS_WIN32
if (fsync (fd) < 0)
return FALSE;
#endif
if (fclose (f) == EOF)
return FALSE;
return TRUE;
......
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