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);