2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-09 11:22:17 +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

@@ -17,8 +17,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(__linux__) || defined(__ANDROID__))
@@ -140,7 +143,7 @@ std::vector<pid_type> child_pids(pid_type pid, boost::system::error_code & ec)
return vec;
}
#elif (defined(__APPLE__) && defined(__MACH__))
#elif (defined(__APPLE__) && defined(__MACH__)) && !TARGET_OS_IOS
std::vector<pid_type> all_pids(boost::system::error_code & ec)
{