$NetBSD: patch-ag,v 1.2 2001/10/02 11:07:15 seb Exp $ --- scsh/bsd/signals1.c.orig Thu Sep 12 08:01:30 1996 +++ scsh/bsd/signals1.c @@ -5,6 +5,10 @@ /* Make sure our exports match up w/the implementation: */ #include "../signals1.h" +#if defined(__NetBSD__) +#include +#endif + /* This table converts Unix signal numbers to S48/scsh interrupt numbers. ** If the signal doesn't have an interrupt number, the entry is -1. ** (Only asynchronous signals have interrupt numbers.) @@ -45,10 +49,13 @@ scshint_winch, /* SIGWINCH */ scshint_info, /* SIGINFO */ scshint_usr1, /* SIGUSR1 */ - scshint_usr2 /* SIGUSR2 */ + scshint_usr2, /* SIGUSR2 */ +#if defined(__NetBSD__) && defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 103080000) + scshint_pwr /* SIGPWR */ +#endif }; -const int max_sig = 31; /* SIGUSR2 */ +const int max_sig = (sizeof(sig2int)/sizeof(int)) - 1; /* scshint_alarm