summaryrefslogtreecommitdiff
path: root/shells/scsh/patches/patch-ag
blob: 309a24fb175b758e700e0ce0895c8ab539ccae09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$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 <sys/param.h>
+#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