From 320aa4a493d4bacea34e66ea392611ca8dd3509d Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 18 Apr 2010 06:44:21 +0000 Subject: [PATCH] Revert r101701, Darwin doesn't have 'environ'. Go figure. llvm-svn: 101702 --- llvm/lib/System/Unix/Program.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 476e90b38b22..2f3616e73a10 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/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);