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 | 01df6842c1e8890d8f529683ed6d6e7b6bb172d8 (patch) | |
tree | d0f83ffb76489085774bfc3908011f8b1df44c13 /lib/Support | |
parent | 66aefa805b0c0be252bf092816464eec566b713b (diff) | |
download | llvm-01df6842c1e8890d8f529683ed6d6e7b6bb172d8.tar.gz llvm-01df6842c1e8890d8f529683ed6d6e7b6bb172d8.tar.bz2 llvm-01df6842c1e8890d8f529683ed6d6e7b6bb172d8.tar.xz |
Fix the "#ifndef HAVE_SYS_WAIT_H" code path in Program.inc to compile
Without this fix, WaitResult is not defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Unix/Program.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Unix/Program.inc b/lib/Support/Unix/Program.inc index 78b2971454..5aa024a335 100644 --- a/lib/Support/Unix/Program.inc +++ b/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; |