* grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...

* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-08 20:05:24 +02:00
parent 79f78fbf06
commit 2112fb3fef
3 changed files with 15 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
2013-10-08 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/osdep/windows/sleep.c: Add missing config.h. * grub-core/osdep/windows/sleep.c: Add missing config.h.

View file

@ -152,12 +152,3 @@ grub_get_time_ms (void)
return (tv.tv_sec * 1000 + tv.tv_usec / 1000); return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
} }
#ifdef __MINGW32__
int fsync (int fno __attribute__ ((unused)))
{
return 0;
}
#endif

View file

@ -255,3 +255,13 @@ canonicalize_file_name (const char *path)
#endif #endif
return ret; return ret;
} }
#ifdef __MINGW32__
int fsync (int fno __attribute__ ((unused)))
{
return 0;
}
#endif