summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2014-01-27 22:53:07 +0000
committerMark Seaborn <mseaborn@chromium.org>2014-01-27 22:53:07 +0000
commit01df6842c1e8890d8f529683ed6d6e7b6bb172d8 (patch)
treed0f83ffb76489085774bfc3908011f8b1df44c13 /lib/Support
parent66aefa805b0c0be252bf092816464eec566b713b (diff)
downloadllvm-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.inc1
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;