diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.c | 8 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e23540e63..7342dcb77 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1744,6 +1744,7 @@ AC_CHECK_FUNCS([ \ | |||
1744 | poll \ | 1744 | poll \ |
1745 | prctl \ | 1745 | prctl \ |
1746 | pstat \ | 1746 | pstat \ |
1747 | raise \ | ||
1747 | readpassphrase \ | 1748 | readpassphrase \ |
1748 | reallocarray \ | 1749 | reallocarray \ |
1749 | recvmsg \ | 1750 | recvmsg \ |
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) | |||
290 | (void)memset(b, 0, n); | 290 | (void)memset(b, 0, n); |
291 | } | 291 | } |
292 | #endif | 292 | #endif |
293 | |||
294 | #ifndef HAVE_RAISE | ||
295 | int | ||
296 | raise(int sig) | ||
297 | { | ||
298 | kill(getpid(), sig); | ||
299 | } | ||
300 | #endif | ||
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index bf5fad188..3cb912d28 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -137,4 +137,8 @@ long long llabs(long long); | |||
137 | void bzero(void *, size_t); | 137 | void bzero(void *, size_t); |
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | #ifndef HAVE_RAISE | ||
141 | int raise(int); | ||
142 | #endif | ||
143 | |||
140 | #endif /* _BSD_MISC_H */ | 144 | #endif /* _BSD_MISC_H */ |