diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-13 14:57:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-13 14:57:24 +0000 |
commit | 2c97c2ccffac3e8414375272884251403420b100 (patch) | |
tree | 199f5990e3884026dee828ff2f06433a2bcdff4f /llvm/lib/Support/Signals.cpp | |
parent | 548002f3d53aef71edd7419902c900c4ded1982b (diff) | |
download | bcm5719-llvm-2c97c2ccffac3e8414375272884251403420b100.tar.gz bcm5719-llvm-2c97c2ccffac3e8414375272884251403420b100.zip |
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.
llvm-svn: 3700
Diffstat (limited to 'llvm/lib/Support/Signals.cpp')
-rw-r--r-- | llvm/lib/Support/Signals.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Signals.cpp b/llvm/lib/Support/Signals.cpp index 29daedf0fb9..3b3468350d4 100644 --- a/llvm/lib/Support/Signals.cpp +++ b/llvm/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]); |