aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-25 07:34:00 +0000
committerChris Lattner <sabre@nondot.org>2004-07-25 07:34:00 +0000
commitd67e4392412232a9aa5bf7560c0b0e624a842b65 (patch)
tree57280c037a08b02632e209082e9dde8e436ecb90 /lib/Support
parentf542649f1b374b1bae845e4e4f6d1e82f90a9e31 (diff)
downloadexternal_llvm-d67e4392412232a9aa5bf7560c0b0e624a842b65.zip
external_llvm-d67e4392412232a9aa5bf7560c0b0e624a842b65.tar.gz
external_llvm-d67e4392412232a9aa5bf7560c0b0e624a842b65.tar.bz2
Remove linux/solaris specific stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/SystemUtils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp
index 354f1a3..b831f40 100644
--- a/lib/Support/SystemUtils.cpp
+++ b/lib/Support/SystemUtils.cpp
@@ -27,6 +27,7 @@
#include <cstdlib>
#include <fstream>
#include <iostream>
+#include <signal.h>
using namespace llvm;
/// isExecutableFile - This function returns true if the filename specified
@@ -174,7 +175,8 @@ int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
struct sigaction Act, Old;
Act.sa_sigaction = 0;
Act.sa_handler = TimeOutHandler;
- Act.sa_flags = SA_NOMASK;
+ sigemptyset(&Act.sa_mask);
+ Act.sa_flags = 0;
sigaction(SIGALRM, &Act, &Old);
// Set the timeout if one is set.