[2062] 2009-04-04 Bean <[email protected]>

Bean <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2062
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2062
Author:   bean
Date:     2009-04-04 07:42:13 +0000 (Sat, 04 Apr 2009)
Log Message:
-----------
2009-04-04  Bean  <[email protected]>

	* include/grub/util/misc.h: Add dummy function fsync for mingw.

	* util/misc.c: Likewise.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/include/grub/util/misc.h
    trunk/grub2/util/misc.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-04-03 20:19:36 UTC (rev 2061)
+++ trunk/grub2/ChangeLog	2009-04-04 07:42:13 UTC (rev 2062)
@@ -1,3 +1,9 @@
+2009-04-04  Bean  <[email protected]>
+
+	* include/grub/util/misc.h: Add dummy function fsync for mingw.
+
+	* util/misc.c: Likewise.
+
 2009-04-04  Yoshinori K. Okuji  <[email protected]>
 
 	* loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf

Modified: trunk/grub2/include/grub/util/misc.h
===================================================================
--- trunk/grub2/include/grub/util/misc.h	2009-04-03 20:19:36 UTC (rev 2061)
+++ trunk/grub2/include/grub/util/misc.h	2009-04-04 07:42:13 UTC (rev 2062)
@@ -69,6 +69,7 @@
 #define ftello ftello64
 
 void sync (void);
+int fsync (int fno);
 void sleep(int s);
 
 grub_int64_t grub_util_get_disk_size (char *name);

Modified: trunk/grub2/util/misc.c
===================================================================
--- trunk/grub2/util/misc.c	2009-04-03 20:19:36 UTC (rev 2061)
+++ trunk/grub2/util/misc.c	2009-04-04 07:42:13 UTC (rev 2062)
@@ -370,6 +370,11 @@
 {
 }
 
+int fsync (int fno __attribute__ ((unused)))
+{
+  return 0;
+}
+
 void sleep (int s)
 {
   Sleep (s * 1000);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.