summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-13 14:57:24 +0000
committerChris Lattner <sabre@nondot.org>2002-09-13 14:57:24 +0000
commit7c97cee26a25f398c31be7f8853d363410f6a31e (patch)
tree30e04628032eacb2f49e8b4362b3a57262567279 /support
parentf90a0e4bd7c99788d85655e9f52c63a3a58f7431 (diff)
downloadllvm-7c97cee26a25f398c31be7f8853d363410f6a31e.tar.gz
llvm-7c97cee26a25f398c31be7f8853d363410f6a31e.tar.bz2
llvm-7c97cee26a25f398c31be7f8853d363410f6a31e.tar.xz
Submitted by Casey Carter:
ISSUE: Linux doesn't have any steenking SIGEMT signal, as referred to in lib/Support/Signals.cpp. ACTION: Wrap the use with a #ifdef SIGEMT / #endif. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r--support/lib/Support/Signals.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/support/lib/Support/Signals.cpp b/support/lib/Support/Signals.cpp
index 29daedf0fb..3b3468350d 100644
--- a/support/lib/Support/Signals.cpp
+++ b/support/lib/Support/Signals.cpp
@@ -24,8 +24,10 @@ static const int *IntSigsEnd = IntSigs + sizeof(IntSigs)/sizeof(IntSigs[0]);
// KillSigs - Signals that are synchronous with the program that will cause it
// to die.
static const int KillSigs[] = {
- SIGILL, SIGTRAP, SIGABRT, SIGEMT, SIGFPE,
- SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
+ SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
+#ifdef SIGEMT
+ , SIGEMT
+#endif
};
static const int *KillSigsEnd = KillSigs + sizeof(KillSigs)/sizeof(KillSigs[0]);