diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-04-18 06:44:21 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-04-18 06:44:21 +0000 |
commit | 1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2 (patch) | |
tree | f43e477d074c88f59e92291d457d781a44b26519 /lib/System | |
parent | b7dfca977849eacd8079a725f61229ba1534e71c (diff) | |
download | external_llvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.zip external_llvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.tar.gz external_llvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.tar.bz2 |
Revert r101701, Darwin doesn't have 'environ'. Go figure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r-- | lib/System/Unix/Program.inc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 476e90b..2f3616e 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -34,8 +34,6 @@ #include <spawn.h> #endif -extern char **environ; - namespace llvm { using namespace sys; @@ -202,7 +200,6 @@ Program::Execute(const Path &path, const char **args, const char **envp, } pid_t PID; - if (!envp) envp = (const char**)environ; int Err = posix_spawn(&PID, path.c_str(), &FileActions, /*attrp*/0, (char**)args, (char**)envp); |