From 84226b447d45fe4542613de68c2ca59a890d7c01 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 23 Jan 2020 18:55:24 +1100 Subject: Remove mysignal wrapper. We switched the main code to use sigaction(), so the wrapper is no longer used. --- openbsd-compat/bsd-signal.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'openbsd-compat/bsd-signal.h') diff --git a/openbsd-compat/bsd-signal.h b/openbsd-compat/bsd-signal.h index 4cb8cb7a0..dafb4b199 100644 --- a/openbsd-compat/bsd-signal.h +++ b/openbsd-compat/bsd-signal.h @@ -27,11 +27,6 @@ # endif #endif -/* wrapper for signal interface */ -typedef void (*mysig_t)(int); -mysig_t mysignal(int sig, mysig_t act); -#define signal(a,b) mysignal(a,b) - #if !defined(HAVE_STRSIGNAL) char *strsignal(int); #endif -- cgit v1.2.3 From 0373f9eba2b63455dceedbd3ac3d5dca306789ff Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 26 Jan 2020 14:09:17 +1100 Subject: Include signal.h to prevent redefintion of _NSIG. --- openbsd-compat/bsd-signal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsd-compat/bsd-signal.h') diff --git a/openbsd-compat/bsd-signal.h b/openbsd-compat/bsd-signal.h index dafb4b199..8d8c44419 100644 --- a/openbsd-compat/bsd-signal.h +++ b/openbsd-compat/bsd-signal.h @@ -19,6 +19,8 @@ #include "includes.h" +#include + #ifndef _NSIG # ifdef NSIG # define _NSIG NSIG -- cgit v1.2.3