No fsync on Windows

This commit is contained in:
Tor Lillqvist 2010-11-24 14:36:18 +02:00
parent 290ecb0aba
commit 4e59750ac0

View File

@ -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;