Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/ext/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 7 additions & 3 deletions src/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
#include <boost/process/v2/error.hpp>
#include <boost/process/v2/shell.hpp>

#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif

#if defined(BOOST_PROCESS_V2_WINDOWS)
#include <windows.h>
#include <shellapi.h>
#elif !defined(__OpenBSD__) && !defined(__ANDROID__)
#elif !defined(__OpenBSD__) && !defined(__ANDROID__) && !(defined(__APPLE__) && !TARGET_OS_OSX)
#include <wordexp.h>
#endif

Expand All @@ -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
{
Expand Down Expand Up @@ -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_()
{
Expand Down