From 2b28ddd0c6f05674604f22a14bc77790721e5198 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 21 Nov 2023 21:49:36 -0500 Subject: [PATCH] Fix MSWIN compile in last commit --- src/V3Os.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Os.cpp b/src/V3Os.cpp index f966e4fe8..e6aa94498 100644 --- a/src/V3Os.cpp +++ b/src/V3Os.cpp @@ -47,6 +47,7 @@ VL_DEFINE_DEBUG_FUNCTIONS; #include #include #endif +#include #include #include @@ -76,7 +77,6 @@ VL_DEFINE_DEBUG_FUNCTIONS; # include # include // Needed on FreeBSD for WIFEXITED # include // usleep -# include #endif // clang-format on @@ -301,7 +301,7 @@ void V3Os::filesystemFlush(const string& dirname) { // NFS caches stat() calls so to get up-to-date information must // do a open or opendir on the filename. #ifdef _MSC_VER - if (int fd = ::open(filename.c_str(), O_RDONLY)) { // LCOV_EXCL_BR_LINE + if (int fd = ::open(dirname.c_str(), O_RDONLY)) { // LCOV_EXCL_BR_LINE if (fd > 0) ::close(fd); } #else