summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SlowOperationInformer.cpp
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-01-01 15:14:28 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-01-01 15:14:28 +0000
commit5782ca06fcbf7d2ce982ad871fc5f35c6bb49dd6 (patch)
treeec1baef59a5167d9ab2503baa5a894e9ddc995e9 /llvm/lib/Support/SlowOperationInformer.cpp
parent748e857996e6ecf847ddf36207aca9f417c0bd9d (diff)
downloadbcm5719-llvm-5782ca06fcbf7d2ce982ad871fc5f35c6bb49dd6.tar.gz
bcm5719-llvm-5782ca06fcbf7d2ce982ad871fc5f35c6bb49dd6.zip
Not all platforms supports sighandler_t, so I changed it to use the older
return value from signal() (which should be the same type; it's just not typedef'd). This fixes the build on Solaris. llvm-svn: 10675
Diffstat (limited to 'llvm/lib/Support/SlowOperationInformer.cpp')
-rw-r--r--llvm/lib/Support/SlowOperationInformer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SlowOperationInformer.cpp b/llvm/lib/Support/SlowOperationInformer.cpp
index 9fd718e3060..c245f3655c2 100644
--- a/llvm/lib/Support/SlowOperationInformer.cpp
+++ b/llvm/lib/Support/SlowOperationInformer.cpp
@@ -41,7 +41,7 @@ static RETSIGTYPE SigAlarmHandler(int Sig) {
ShouldShowStatus = true;
}
-static sighandler_t OldSigIntHandler;
+static void (*OldSigIntHandler) (int);
SlowOperationInformer::SlowOperationInformer(const std::string &Name)
OpenPOWER on IntegriCloud