]> git.proxmox.com Git - grub2.git/commitdiff
2009-04-04 Bean <bean123ch@gnail.com>
authorbean <bean@localhost>
Sat, 4 Apr 2009 07:42:13 +0000 (07:42 +0000)
committerbean <bean@localhost>
Sat, 4 Apr 2009 07:42:13 +0000 (07:42 +0000)
* include/grub/util/misc.h: Add dummy function fsync for mingw.

* util/misc.c: Likewise.

ChangeLog
include/grub/util/misc.h
util/misc.c

index 12394bad6afcac018a1950b5b17e1a2e13c1e0ba..c94409d61902e13c77a28310c6d0b72d54ad20a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 2e920c1b4ef565859b589a57d4a46edf2c296239..9eaef88373c73b59415189e53e4549b4a53a4ed6 100644 (file)
@@ -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);
index 64c35fd9f9e5abcd96b160a5df297c36666568fc..bd162ee937b277f02b270f80eb30771a5cfc5682 100644 (file)
@@ -370,6 +370,11 @@ void sync (void)
 {
 }
 
+int fsync (int fno __attribute__ ((unused)))
+{
+  return 0;
+}
+
 void sleep (int s)
 {
   Sleep (s * 1000);