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

@ -53,7 +53,8 @@ grub_util_create_envblk_file (const char *name)
grub_util_error (_("cannot write to `%s': %s"), namenew,
strerror (errno));
fsync (fileno (fp));
grub_util_file_sync (fp);
free (buf);
fclose (fp);