]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 8 Oct 2013 18:05:24 +0000 (20:05 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 8 Oct 2013 18:05:24 +0000 (20:05 +0200)
* grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.

ChangeLog
grub-core/kern/emu/misc.c
grub-core/osdep/windows/hostdisk.c

index 71a4d79cab623cf3c5c06ef82f51c6c9eb051d5c..325652a86c5dd37a67e0c90e1f595e455a8f06d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/osdep/windows/sleep.c: Add missing config.h.
index e68731c2f7fdee4379e1edf41cf3c1daa5c4b8a7..b4d2e69b50f8e43e9c286d7d8b27fa7e8f9ff21c 100644 (file)
@@ -152,12 +152,3 @@ grub_get_time_ms (void)
 
   return (tv.tv_sec * 1000 + tv.tv_usec / 1000);
 }
-
-#ifdef __MINGW32__
-
-int fsync (int fno __attribute__ ((unused)))
-{
-  return 0;
-}
-
-#endif
index 69353d6c5007f1e49b6ea6931588b740916133de..10ae6fd53d67165e1a37d3f182f976b1e6b75202 100644 (file)
@@ -255,3 +255,13 @@ canonicalize_file_name (const char *path)
 #endif
   return ret;
 }
+
+
+#ifdef __MINGW32__
+
+int fsync (int fno __attribute__ ((unused)))
+{
+  return 0;
+}
+
+#endif