Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
Fixes build for windows.
This commit is contained in:
parent
b1f742c103
commit
4f9541226c
10 changed files with 37 additions and 15 deletions
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue