summaryrefslogtreecommitdiffstats
path: root/base/process_util_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util_mac.mm')
-rw-r--r--base/process_util_mac.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm
index a0a123a..c29b488 100644
--- a/base/process_util_mac.mm
+++ b/base/process_util_mac.mm
@@ -12,6 +12,10 @@
#include <sys/types.h>
#include <sys/wait.h>
+extern "C" {
+extern char** environ;
+}
+
namespace base {
bool LaunchApp(const std::vector<std::string>& argv,
@@ -30,7 +34,7 @@ bool LaunchApp(const std::vector<std::string>& argv,
NULL,
NULL,
argv_copy,
- NULL) == 0);
+ environ) == 0);
bool process_handle_valid = pid > 0;
if (!spawn_succeeded || !process_handle_valid) {