aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Program.inc
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-08-04 06:29:58 +0000
committerJustin Bogner <mail@justinbogner.com>2015-08-04 06:29:58 +0000
commitc7e3f3ab6efb928711c6861307317f91148e0eb5 (patch)
tree3f8cf3309723e121f474f141a41bb2c76fe809ef /llvm/lib/Support/Unix/Program.inc
parentcaf1149b8b7801efdd329cdd6e158d8c862e56a6 (diff)
downloadllvm-c7e3f3ab6efb928711c6861307317f91148e0eb5.zip
llvm-c7e3f3ab6efb928711c6861307317f91148e0eb5.tar.gz
llvm-c7e3f3ab6efb928711c6861307317f91148e0eb5.tar.bz2
Remove the configure and cmake checks for sys/wait.h
If we don't have sys/wait.h and we're on a unix system there's no way that several of the llvm tools work at all. This includes clang. Just remove the configure and cmake checks entirely - we'll get a build error instead of building something broken now. llvm-svn: 243957
Diffstat (limited to 'llvm/lib/Support/Unix/Program.inc')
-rw-r--r--llvm/lib/Support/Unix/Program.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc
index 8947b62..a8d1fe3 100644
--- a/llvm/lib/Support/Unix/Program.inc
+++ b/llvm/lib/Support/Unix/Program.inc
@@ -323,7 +323,6 @@ namespace llvm {
ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
bool WaitUntilTerminates, std::string *ErrMsg) {
-#ifdef HAVE_SYS_WAIT_H
struct sigaction Act, Old;
assert(PI.Pid && "invalid pid to wait on, process not started?");
@@ -417,12 +416,6 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
// signal during execution as opposed to failing to execute.
WaitResult.ReturnCode = -2;
}
-#else
- if (ErrMsg)
- *ErrMsg = "Program::Wait is not implemented on this platform yet!";
- ProcessInfo WaitResult;
- WaitResult.ReturnCode = -2;
-#endif
return WaitResult;
}