* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really

implement fsync.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2013-10-15 15:06:20 +02:00
1 parent 27f9d02eb9
commit af3b06be14
2 files changed
+9 -1

No files matched your search

+4 -1
View File
@@ -422,8 +422,11 @@ grub_util_fopen (const char *path, const char *mode)
return ret;
}
int fsync (int fno __attribute__ ((unused)))
int fsync (int fno)
{
HANDLE hnd;
hnd = _get_osfhandle (fno);
FlushFileBuffers (hnd);
return 0;
}