aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SystemUtils.cpp
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
commitd1980dbeba6b41fef42ee5ac71e161cbb85ea30e (patch)
tree1daf6a52d7ce2088195ed7930e56b7e9c3a17bc0 /llvm/lib/Support/SystemUtils.cpp
parentccc75d4f32dfc8764a79bd844ea74475630e87cd (diff)
downloadllvm-d1980dbeba6b41fef42ee5ac71e161cbb85ea30e.zip
llvm-d1980dbeba6b41fef42ee5ac71e161cbb85ea30e.tar.gz
llvm-d1980dbeba6b41fef42ee5ac71e161cbb85ea30e.tar.bz2
Remove linux/solaris specific stuff.
llvm-svn: 15195
Diffstat (limited to 'llvm/lib/Support/SystemUtils.cpp')
-rw-r--r--llvm/lib/Support/SystemUtils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/SystemUtils.cpp b/llvm/lib/Support/SystemUtils.cpp
index 354f1a3..b831f40 100644
--- a/llvm/lib/Support/SystemUtils.cpp
+++ b/llvm/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.