Check for raise and supply if needed.

This commit is contained in:
Darren Tucker 2018-02-24 20:46:37 +11:00
parent a9004425a0
commit 6c8c9a615b
3 changed files with 13 additions and 0 deletions

View File

@ -1744,6 +1744,7 @@ AC_CHECK_FUNCS([ \
poll \ poll \
prctl \ prctl \
pstat \ pstat \
raise \
readpassphrase \ readpassphrase \
reallocarray \ reallocarray \
recvmsg \ recvmsg \

View File

@ -290,3 +290,11 @@ bzero(void *b, size_t n)
(void)memset(b, 0, n); (void)memset(b, 0, n);
} }
#endif #endif
#ifndef HAVE_RAISE
int
raise(int sig)
{
kill(getpid(), sig);
}
#endif

View File

@ -137,4 +137,8 @@ long long llabs(long long);
void bzero(void *, size_t); void bzero(void *, size_t);
#endif #endif
#ifndef HAVE_RAISE
int raise(int);
#endif
#endif /* _BSD_MISC_H */ #endif /* _BSD_MISC_H */