summaryrefslogtreecommitdiff
path: root/unittest/mytap
diff options
context:
space:
mode:
authorunknown <joerg@trift2.>2006-10-12 22:42:43 +0200
committerunknown <joerg@trift2.>2006-10-12 22:42:43 +0200
commitcf3b25019ce2398c2012cfe25d95b86e2bc638d8 (patch)
treecdb991bae393b2cd8841f023a5e158d94af5643b /unittest/mytap
parentc4478030767a7312dd32c5cfb8ef26d731d68e06 (diff)
downloadmariadb-git-cf3b25019ce2398c2012cfe25d95b86e2bc638d8.tar.gz
unittest/mytap/tap.c :
Do not (try to) set a signal handler action unless a signal is defined on the platform. unittest/mytap/tap.c: Do not (try to) set a signal handler action unless a signal is defined on the platform. SIGXCPU, SIGXFSZ, SIGSYS, and SIGTRAP were reported as undefined in Netware build of 5.1.12-beta.
Diffstat (limited to 'unittest/mytap')
-rw-r--r--unittest/mytap/tap.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index 17ec51863d9..54292f3b828 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -140,11 +140,19 @@ static signal_entry install_signal[]= {
{ SIGABRT, handle_core_signal },
{ SIGFPE, handle_core_signal },
{ SIGSEGV, handle_core_signal },
- { SIGBUS, handle_core_signal },
- { SIGXCPU, handle_core_signal },
- { SIGXFSZ, handle_core_signal },
- { SIGSYS, handle_core_signal },
- { SIGTRAP, handle_core_signal }
+ { SIGBUS, handle_core_signal }
+#ifdef SIGXCPU
+ , { SIGXCPU, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGXFSZ, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGSYS, handle_core_signal }
+#endif
+#ifdef SIGXCPU
+ , { SIGTRAP, handle_core_signal }
+#endif
};
void