$NetBSD: patch-ad,v 1.11 2005/01/25 10:08:59 adam Exp $
--- pine/signals.c.orig 2004-11-04 22:33:05.000000000 +0000
+++ pine/signals.c
@@ -53,6 +53,7 @@ static char rcsid[] = "$Id: signals.c,v
====*/
#include "headers.h"
+#include <signal.h>
/* nto defines SA_RESTART but doesn't support it yet (00/12/29 - hubert) */
#if defined(NTO)
@@ -109,7 +110,9 @@ init_signals()
if(CUSHION_SIG){
signal(SIGILL, auger_in_signal);
signal(SIGTRAP, auger_in_signal);
+#ifdef SIGEMT
signal(SIGEMT, auger_in_signal);
+#endif
signal(SIGBUS, auger_in_signal);
signal(SIGSEGV, auger_in_signal);
signal(SIGSYS, auger_in_signal);
@@ -197,7 +200,9 @@ end_signals(blockem)
}
signal(SIGTRAP, blockem ? SIG_IGN : SIG_DFL);
signal(SIGEMT, blockem ? SIG_IGN : SIG_DFL);
signal(SIGBUS, blockem ? SIG_IGN : SIG_DFL);
signal(SIGSEGV, blockem ? SIG_IGN : SIG_DFL);
signal(SIGSYS, blockem ? SIG_IGN : SIG_DFL);