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
|
@ -491,8 +491,7 @@ grub_install_make_image_wrap (const char *dir, const char *prefix,
|
|||
grub_install_make_image_wrap_file (dir, prefix, fp, outname,
|
||||
memdisk_path, config_path,
|
||||
mkimage_target, note, comp);
|
||||
fflush (fp);
|
||||
grub_util_fd_sync (fileno (fp));
|
||||
grub_util_file_sync (fp);
|
||||
fclose (fp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue