2009-04-04 Bean <bean123ch@gnail.com>
* include/grub/util/misc.h: Add dummy function fsync for mingw. * util/misc.c: Likewise.
This commit is contained in:
parent
54ad95559e
commit
da4c0bb629
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-04-04 Bean <bean123ch@gnail.com>
|
||||
|
||||
* include/grub/util/misc.h: Add dummy function fsync for mingw.
|
||||
|
||||
* util/misc.c: Likewise.
|
||||
|
||||
2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
|
||||
|
||||
* loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
|
||||
|
|
|
@ -69,6 +69,7 @@ int asprintf (char **buf, const char *fmt, ...);
|
|||
#define ftello ftello64
|
||||
|
||||
void sync (void);
|
||||
int fsync (int fno);
|
||||
void sleep(int s);
|
||||
|
||||
grub_int64_t grub_util_get_disk_size (char *name);
|
||||
|
|
|
@ -370,6 +370,11 @@ void sync (void)
|
|||
{
|
||||
}
|
||||
|
||||
int fsync (int fno __attribute__ ((unused)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void sleep (int s)
|
||||
{
|
||||
Sleep (s * 1000);
|
||||
|
|
Loading…
Reference in a new issue