From 29c110265f50c14b8611a3f14be3941b23952125 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 6 Mar 2010 16:43:18 +0200 Subject: [PATCH] _NSIG. --- src/setjmp/siglongjmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/setjmp/siglongjmp.c b/src/setjmp/siglongjmp.c index 9a091fae..49d6d9c6 100644 --- a/src/setjmp/siglongjmp.c +++ b/src/setjmp/siglongjmp.c @@ -31,6 +31,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "jmpbuf.h" #include "setjmp_i.h" +#if !defined(_NSIG) && defined(_SIG_MAXSIG) +# define _NSIG (_SIG_MAXSIG - 1) +#endif + void siglongjmp (sigjmp_buf env, int val) {