summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-10 17:54:51 +0000
committerChris Lattner <sabre@nondot.org>2010-04-10 17:54:51 +0000
commit3a747aef961673ac6ef9c1b00f8a8e9ca54b8220 (patch)
treeaa9d03fc21f556f754d49012ea33b81039a87d5e /llvm/lib
parent2694145e2ea170431c92618cab89ca928effd54d (diff)
downloadbcm5719-llvm-3a747aef961673ac6ef9c1b00f8a8e9ca54b8220.tar.gz
bcm5719-llvm-3a747aef961673ac6ef9c1b00f8a8e9ca54b8220.zip
improve haiku portability, patch by Paul Davey.
llvm-svn: 100933
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Program.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index b4cc875df8c..bad48375bdb 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -239,7 +239,9 @@ Program::Wait(unsigned secondsToWait,
// fact of having a handler at all causes the wait below to return with EINTR,
// unlike if we used SIG_IGN.
if (secondsToWait) {
+#ifndef __HAIKU__
Act.sa_sigaction = 0;
+#endif
Act.sa_handler = TimeOutHandler;
sigemptyset(&Act.sa_mask);
Act.sa_flags = 0;
OpenPOWER on IntegriCloud