From fa10be254d96d41a1c13ad403cb76073bff866cd Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 18 Apr 2010 06:44:21 +0000 Subject: 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 --- lib/System/Unix/Program.inc | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/System/Unix/Program.inc') 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 #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); -- cgit v1.1