summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-02-24 20:46:37 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-02-26 00:09:04 +1100
commit6c8c9a615b6d31db8a87bc25033f053d5b0a831e (patch)
treec691db023c86aa29fa369207a9a543b0be96344f /openbsd-compat/bsd-misc.c
parenta9004425a032d7a7141a5437cfabfd02431e2a74 (diff)
Check for raise and supply if needed.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 3e8f74b7..af58f3bd 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