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

Wrapped proc_info.h functions with IOS check. Using the ext functions will yield a operation_not_supported at runtime.

Closes #401.
This commit is contained in:
Klemens Morgenstern
2024-10-25 09:09:08 +08:00
parent 46b71d5e96
commit a96f7a04e0
6 changed files with 32 additions and 25 deletions

View File

@@ -24,8 +24,11 @@
#endif
#if (defined(__APPLE__) && defined(__MACH__))
#include <sys/proc_info.h>
#include <libproc.h>
#include <TargetConditionals.h>
#if !TARGET_OS_IOS
#include <sys/proc_info.h>
#include <libproc.h>
#endif
#endif
#if (defined(BOOST_PROCESS_V2_WINDOWS) || defined(__linux__) || defined(__ANDROID__) || defined(__sun))
@@ -100,7 +103,7 @@ filesystem::path cwd(HANDLE proc)
return res;
}
#elif (defined(__APPLE__) && defined(__MACH__))
#elif (defined(__APPLE__) && defined(__MACH__)) && !TARGET_OS_IOS
filesystem::path cwd(boost::process::v2::pid_type pid, boost::system::error_code & ec)
{