aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitac254d09bb9b4451c0daa12a768046084b31f3cc (patch)
tree9541db1382d83c6fae5c2abe34f0216520b3f36e /lib
parentb6a1412b8d49c9145e6b804ab16383635fe60fe3 (diff)
downloadexternal_llvm-ac254d09bb9b4451c0daa12a768046084b31f3cc.zip
external_llvm-ac254d09bb9b4451c0daa12a768046084b31f3cc.tar.gz
external_llvm-ac254d09bb9b4451c0daa12a768046084b31f3cc.tar.bz2
improve haiku portability, patch by Paul Davey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/System/Unix/Program.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index b4cc875..bad4837 100644
--- a/lib/System/Unix/Program.inc
+++ b/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;