summaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-04-18 06:44:21 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-04-18 06:44:21 +0000
commit1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2 (patch)
treef43e477d074c88f59e92291d457d781a44b26519 /lib/System/Unix
parentb7dfca977849eacd8079a725f61229ba1534e71c (diff)
downloadllvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.tar.gz
llvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.tar.bz2
llvm-1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2.tar.xz
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/Unix')
-rw-r--r--lib/System/Unix/Program.inc3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index 476e90b38b..2f3616e73a 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);