mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 06:48:39 -04:00
fix(os_access_generic): use search_path
from the right namespace
This commit is contained in:
parent
47a263d18e
commit
16e57a468b
@ -27,8 +27,10 @@
|
||||
|
||||
#if __has_include(<boost/process/v1/search_path.hpp>)
|
||||
#include <boost/process/v1/search_path.hpp>
|
||||
#define DWARFS_BOOST_PROCESS_SEARCH_PATH_V1 1
|
||||
#else
|
||||
#include <boost/process/search_path.hpp>
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user