diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2014-01-27 22:53:07 +0000 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2014-01-27 22:53:07 +0000 |
commit | 8d5b0e2f8f60b401945ed37dead561b208d47612 (patch) | |
tree | 6a28c9cc711457578fd5f4bef4a4de8ee3da8117 /llvm/lib/Support/Unix/Program.inc | |
parent | 8ae19f74c3edc29716763be0bcfa401ed686fa37 (diff) | |
download | bcm5719-llvm-8d5b0e2f8f60b401945ed37dead561b208d47612.tar.gz bcm5719-llvm-8d5b0e2f8f60b401945ed37dead561b208d47612.zip |
Fix the "#ifndef HAVE_SYS_WAIT_H" code path in Program.inc to compile
Without this fix, WaitResult is not defined.
llvm-svn: 200259
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Program.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index 78b29714549..5aa024a3352 100644 --- a/llvm/lib/Support/Unix/Program.inc +++ b/llvm/lib/Support/Unix/Program.inc @@ -418,6 +418,7 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, #else if (ErrMsg) *ErrMsg = "Program::Wait is not implemented on this platform yet!"; + ProcessInfo WaitResult; WaitResult.ReturnCode = -2; #endif return WaitResult; |