From d306437fb2d524d6534152262d8ec59d44b69066 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 Jul 2002 13:45:49 +0000 Subject: [PATCH] no fsync on WIN32 --- bfile/mfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bfile/mfile.c b/bfile/mfile.c index 957e255..8680c76 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: mfile.c,v 1.47 2002-07-25 13:06:43 adam Exp $ + * $Id: mfile.c,v 1.48 2002-07-25 13:45:49 adam Exp $ */ @@ -413,7 +413,9 @@ int mf_close(MFile mf) for (i = 0; i < mf->no_files; i++) if (mf->files[i].fd >= 0) { +#ifndef WIN32 fsync(mf->files[i].fd); +#endif close(mf->files[i].fd); mf->files[i].fd = -1; } -- 1.7.10.4