summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/prof_file.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index afb373382..23595650e 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-17 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_file.c (profile_flush_file_data) [_WIN32]: Don't call
+ sync.
+
2003-01-13 Ken Raeburn <raeburn@mit.edu>
* prof_int.h (SHARE_TREE_DATA): Define only on Mac.
diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c
index a71c44fe4..90866b913 100644
--- a/src/util/profile/prof_file.c
+++ b/src/util/profile/prof_file.c
@@ -319,7 +319,9 @@ errcode_t profile_flush_file_data(data)
/* Couldn't make the hard link, so there's going to be a
small window where data->filespec does not refer to
either version. */
+#ifndef _WIN32
sync();
+#endif
if (rename(data->filespec, old_file)) {
retval = errno;
goto errout;