| Index: runtime/bin/process_macos.cc
|
| diff --git a/runtime/bin/process_macos.cc b/runtime/bin/process_macos.cc
|
| index 7ef89b1b3a91c0b97d23dcf4e698c605048183ae..bf81a8c31f6759ea6b61de315dd7df8772a5e504 100644
|
| --- a/runtime/bin/process_macos.cc
|
| +++ b/runtime/bin/process_macos.cc
|
| @@ -7,7 +7,9 @@
|
|
|
| #include "bin/process.h"
|
|
|
| +#if !defined(TARGET_OS_IOS)
|
| #include <crt_externs.h> // NOLINT
|
| +#endif
|
| #include <errno.h> // NOLINT
|
| #include <fcntl.h> // NOLINT
|
| #include <poll.h> // NOLINT
|
| @@ -449,12 +451,14 @@ class ProcessStarter {
|
| ReportChildError();
|
| }
|
|
|
| +#if !defined(TARGET_OS_IOS)
|
| if (program_environment_ != NULL) {
|
| // On MacOS you have to do a bit of magic to get to the
|
| // environment strings.
|
| char*** environ = _NSGetEnviron();
|
| *environ = program_environment_;
|
| }
|
| +#endif
|
|
|
| VOID_TEMP_FAILURE_RETRY(
|
| execvp(path_, const_cast<char* const*>(program_arguments_)));
|
|
|