diff options
-rw-r--r-- | util/nvramtool/cli/nvramtool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/nvramtool/cli/nvramtool.c b/util/nvramtool/cli/nvramtool.c index 7716bd8710..76d5cbb678 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> +#endif typedef void (*op_fn_t) (void); @@ -168,6 +171,8 @@ int main(int argc, char *argv[]) } #ifndef __MINGW32__ fsync(fd); +#else + FlushFileBuffers ((HANDLE) _get_osfhandle (fd)); #endif } |