[gtk+/gtk-2-24] No fsync on Windows



commit be8c0e47345703e4c7ca82f04e11e3df6231cef4
Author: Tor Lillqvist <tml iki fi>
Date:   Wed Nov 24 14:36:18 2010 +0200

    No fsync on Windows

 gtk/updateiconcache.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 09db4cc..9bced42 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1441,8 +1441,10 @@ safe_fclose (FILE *f)
   g_assert (fd >= 0);
   if (fflush (f) == EOF)
     return FALSE;
+#ifndef G_OS_WIN32
   if (fsync (fd) < 0)
     return FALSE;
+#endif
   if (fclose (f) == EOF)
     return FALSE;
   return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]