Revert r101701, Darwin doesn't have 'environ'. Go figure.
authorNick Lewycky <nicholas@mxc.ca>
Sun, 18 Apr 2010 06:44:21 +0000 (06:44 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 18 Apr 2010 06:44:21 +0000 (06:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Unix/Program.inc

index 476e90b38b22f351a3ab854e6dc1feba5818419a..2f3616e73a1018a405fb12299d735966f6c3e95d 100644 (file)
@@ -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);