Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).

Fixes build for windows.
This commit is contained in:
Vladimir Serbinenko 2013-11-27 14:13:50 +01:00
parent b1f742c103
commit 4f9541226c
10 changed files with 37 additions and 15 deletions

View file

@ -66,4 +66,6 @@ FILE *
grub_util_fopen (const char *path, const char *mode);
#endif
void grub_util_file_sync (FILE *f);
#endif /* GRUB_EMU_MISC_H */

View file

@ -79,10 +79,4 @@ grub_util_utf8_to_tchar (const char *in);
char *
grub_util_tchar_to_utf8 (LPCTSTR in);
#ifdef __MINGW32__
int fsync (int fno);
#endif
#endif