[gtk+] No fsync on Windows



commit 4e59750ac079c4741cc0f2345108e4fec868076d
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 7697a2c..338c98c 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]