Fix the "#ifndef HAVE_SYS_WAIT_H" code path in Program.inc to compile
Without this fix, WaitResult is not defined. llvm-svn: 200259
This commit is contained in:
parent
8ae19f74c3
commit
8d5b0e2f8f
|
@ -418,6 +418,7 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
|
||||||
#else
|
#else
|
||||||
if (ErrMsg)
|
if (ErrMsg)
|
||||||
*ErrMsg = "Program::Wait is not implemented on this platform yet!";
|
*ErrMsg = "Program::Wait is not implemented on this platform yet!";
|
||||||
|
ProcessInfo WaitResult;
|
||||||
WaitResult.ReturnCode = -2;
|
WaitResult.ReturnCode = -2;
|
||||||
#endif
|
#endif
|
||||||
return WaitResult;
|
return WaitResult;
|
||||||
|
|
Loading…
Reference in New Issue