From 1a3eb953ccd3fd2d2d2f3e1e5522882852f07bb2 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. 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(-) diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 476e90b38b2..2f3616e73a1 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);