Revert r101701, Darwin doesn't have 'environ'. Go figure.

llvm-svn: 101702
This commit is contained in:
Nick Lewycky 2010-04-18 06:44:21 +00:00
parent 3fdf58800a
commit 320aa4a493
1 changed files with 0 additions and 3 deletions

View File

@ -34,8 +34,6 @@
#include <spawn.h> #include <spawn.h>
#endif #endif
extern char **environ;
namespace llvm { namespace llvm {
using namespace sys; using namespace sys;
@ -202,7 +200,6 @@ Program::Execute(const Path &path, const char **args, const char **envp,
} }
pid_t PID; pid_t PID;
if (!envp) envp = (const char**)environ;
int Err = posix_spawn(&PID, path.c_str(), &FileActions, int Err = posix_spawn(&PID, path.c_str(), &FileActions,
/*attrp*/0, (char**)args, (char**)envp); /*attrp*/0, (char**)args, (char**)envp);