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
|
@ -285,8 +285,7 @@ main (int argc, char *argv[])
|
|||
arguments.image_target, arguments.note,
|
||||
arguments.comp);
|
||||
|
||||
fflush (fp);
|
||||
fsync (fileno (fp));
|
||||
grub_util_file_sync (fp);
|
||||
fclose (fp);
|
||||
|
||||
if (arguments.dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue