From ecca6b2307f275d928de02a1b164146c2b8818cb Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Tue, 14 Jul 2026 12:51:00 +0200 Subject: [PATCH 1/2] Exclude wordexp and workfree for iOS Signed-off-by: Uilian Ries --- src/shell.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/shell.cpp b/src/shell.cpp index bf4bbfd83..f81a09b36 100644 --- a/src/shell.cpp +++ b/src/shell.cpp @@ -16,10 +16,14 @@ #include #include +#if defined(__APPLE__) +#include +#endif + #if defined(BOOST_PROCESS_V2_WINDOWS) #include #include -#elif !defined(__OpenBSD__) && !defined(__ANDROID__) +#elif !defined(__OpenBSD__) && !defined(__ANDROID__) && !(defined(__APPLE__) && !TARGET_OS_OSX) #include #endif @@ -30,7 +34,7 @@ BOOST_PROCESS_V2_DECL const error_category& get_shell_category() { return system_category(); } -#elif !defined(__OpenBSD__) && !defined(__ANDROID__) +#elif !defined(__OpenBSD__) && !defined(__ANDROID__) && !(defined(__APPLE__) && !TARGET_OS_OSX) struct shell_category_t final : public error_category { @@ -99,7 +103,7 @@ auto shell::args() const-> args_type return input_.c_str(); } -#elif !defined(__OpenBSD__) && !defined(__ANDROID__) +#elif !defined(__OpenBSD__) && !defined(__ANDROID__) && !(defined(__APPLE__) && !TARGET_OS_OSX) void shell::parse_() { From beec4966b1ca3afc38534044fda0006b60baad9d Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Tue, 14 Jul 2026 12:51:35 +0200 Subject: [PATCH 2/2] Define ext::env for iOS Signed-off-by: Uilian Ries --- src/ext/env.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ext/env.cpp b/src/ext/env.cpp index 41fcc9acd..e4dcd31f8 100644 --- a/src/ext/env.cpp +++ b/src/ext/env.cpp @@ -309,6 +309,14 @@ env_view env(boost::process::v2::pid_type pid, error_code & ec) return ev; } +#elif defined(__APPLE__) && defined(__MACH__) && TARGET_OS_IOS + +env_view env(boost::process::v2::pid_type pid, error_code & ec) +{ + BOOST_PROCESS_V2_ASSIGN_EC(ec, ENOTSUP, system_category()); + return {}; +} + #elif (defined(__linux__) || defined(__ANDROID__)) || defined(__gnu_hurd__) env_view env(boost::process::v2::pid_type pid, error_code & ec)