From 6c8c9a615b6d31db8a87bc25033f053d5b0a831e Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 24 Feb 2018 20:46:37 +1100 Subject: Check for raise and supply if needed. --- openbsd-compat/bsd-misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbsd-compat/bsd-misc.c') diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 3e8f74b72..af58f3bd2 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c @@ -290,3 +290,11 @@ bzero(void *b, size_t n) (void)memset(b, 0, n); } #endif + +#ifndef HAVE_RAISE +int +raise(int sig) +{ + kill(getpid(), sig); +} +#endif -- cgit v1.2.3