mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
b7dfca9778
commit
1a3eb953cc
@ -34,8 +34,6 @@
|
||||
#include <spawn.h>
|
||||
#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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user