From 16e57a468b416cb86216680de3bdc772e7159c4e Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Mon, 31 Mar 2025 18:33:18 +0200 Subject: [PATCH] fix(os_access_generic): use `search_path` from the right namespace --- src/os_access_generic.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/os_access_generic.cpp b/src/os_access_generic.cpp index 93d60d11..fe81e3cb 100644 --- a/src/os_access_generic.cpp +++ b/src/os_access_generic.cpp @@ -27,8 +27,10 @@ #if __has_include() #include +#define DWARFS_BOOST_PROCESS_SEARCH_PATH_V1 1 #else #include +#define DWARFS_BOOST_PROCESS_SEARCH_PATH_V1 0 #endif #ifdef __APPLE__ @@ -224,7 +226,12 @@ os_access_generic::thread_get_cpu_time(std::thread::id tid, std::filesystem::path os_access_generic::find_executable(std::filesystem::path const& name) const { - return boost::process::search_path(name.wstring()).wstring(); +#if DWARFS_BOOST_PROCESS_SEARCH_PATH_V1 + using boost::process::v1::search_path; +#else + using boost::process::search_path; +#endif + return search_path(name.wstring()).wstring(); } } // namespace dwarfs