[coreboot] New patch to review for coreboot: 636c1c9 nvramtool: fsync for mingw.

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Thu Nov 8 05:57:59 CET 2012

Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1805


commit 636c1c97546acbd7168f3a1a67ed5fdc5b044832
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Thu Nov 8 14:21:46 2012 +0800

    nvramtool: fsync for mingw.
    Change-Id: Ifdec69ca46ba8cbd3eb154d8f4af4b3cafa8019d
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: zbao <fishbaozi at gmail.com>
 util/nvramtool/cli/nvramtool.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/util/nvramtool/cli/nvramtool.c b/util/nvramtool/cli/nvramtool.c
index 7716bd8..76d5cbb 100644
--- a/util/nvramtool/cli/nvramtool.c
+++ b/util/nvramtool/cli/nvramtool.c
@@ -45,6 +45,9 @@
 #include "reg_expr.h"
 #include "hexdump.h"
 #include "cbfs.h"
+#ifdef __MINGW32__
+#include <windows.h>
 typedef void (*op_fn_t) (void);
@@ -168,6 +171,8 @@ int main(int argc, char *argv[])
 #ifndef __MINGW32__
+			FlushFileBuffers ((HANDLE) _get_osfhandle (fd));

More information about the coreboot mailing list