aboutsummaryrefslogtreecommitdiff
path: root/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
commit2657aecfe273b9dfbd4fff77a3ed908197dcd30a (patch)
treec1ea7fc223569834cfa29d2019dbd79533b8e229 /lib/Support/SlowOperationInformer.cpp
parent55d86482bd9fac6f90a7f6fb35c2f4dec9569fdb (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SlowOperationInformer.cpp')
-rw-r--r--lib/Support/SlowOperationInformer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/SlowOperationInformer.cpp b/lib/Support/SlowOperationInformer.cpp
index 9fd718e306..c245f3655c 100644
--- a/lib/Support/SlowOperationInformer.cpp
+++ b/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)