2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-22 03:32:19 +00:00

Switched #error to ENOTSUP for ext libs. Should help #413

Closes #358.
This commit is contained in:
Klemens Morgenstern
2024-10-25 08:13:48 +08:00
parent 9f104634a9
commit 46b71d5e96
4 changed files with 30 additions and 4 deletions

View File

@@ -197,7 +197,11 @@ filesystem::path cwd(boost::process::v2::pid_type pid, boost::system::error_code
}
#else
#error "Platform not supported"
filesystem::path cwd(boost::process::v2::pid_type pid, boost::system::error_code & ec)
{
BOOST_PROCESS_V2_ASSIGN_EC(ec, ENOTSUP, boost::system::system_category())
return "";
}
#endif
filesystem::path cwd(boost::process::v2::pid_type pid)