diff options
author | joerg@trift2. <> | 2006-10-12 22:42:43 +0200 |
---|---|---|
committer | joerg@trift2. <> | 2006-10-12 22:42:43 +0200 |
commit | 72bec39c850dd73f79c7822fcf25b35c12825403 (patch) | |
tree | cdb991bae393b2cd8841f023a5e158d94af5643b /unittest | |
parent | 8a7413f704c49b60509975bef5204d7c9b55e3d3 (diff) | |
download | mariadb-git-72bec39c850dd73f79c7822fcf25b35c12825403.tar.gz |
unittest/mytap/tap.c :
Do not (try to) set a signal handler action unless a signal is defined on the platform.
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mytap/tap.c | 18 |
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 |