From 3c0d7674dc0f8f76b3c10ac00bb02f27b489b99a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaim=20=28Jo=C3=ABl=20Lamotte=29?= <142265+Klaim@users.noreply.github.com> Date: Tue, 24 Jun 2025 15:37:31 +0200 Subject: [PATCH] maint: upgrade usage of deprecated posix API functions --- libmamba/src/core/run.cpp | 2 +- libmamba/src/core/util.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;