mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Revert r101701, Darwin doesn't have 'environ'. Go figure.
llvm-svn: 101702
This commit is contained in:
parent
2b694c49bb
commit
459afe3cce
@ -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…
Reference in New Issue
Block a user