diff --git a/libmamba/src/core/run.cpp b/libmamba/src/core/run.cpp index 13941c25a5..7f467f98cc 100644 --- a/libmamba/src/core/run.cpp +++ b/libmamba/src/core/run.cpp @@ -199,7 +199,7 @@ namespace mamba const std::vector& command, LockFile proc_dir_lock [[maybe_unused]] ) - : location{ proc_dir() / fmt::format("{}.json", getpid()) } + : location{ proc_dir() / fmt::format("{}.json", _getpid()) } { // Lock must be hold for the duraction of this constructor. if (is_file_locking_allowed()) diff --git a/libmamba/src/core/util.cpp b/libmamba/src/core/util.cpp index 186d397f68..a3fc955a39 100644 --- a/libmamba/src/core/util.cpp +++ b/libmamba/src/core/util.cpp @@ -892,7 +892,7 @@ namespace mamba int ret = 0; if (m_fd > -1) { - ret = close(m_fd); + ret = _close(m_fd); m_fd = -1; } return ret;