mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
include: ssp: hide ppoll redirect behind __BSD_VISIBLE
This mirrors ppoll's visibility in sys/poll.h and fixes a build issue with some _POSIX_C_SOURCE requests due to missing the sigset_t typedef. Reported by: eduardo Sponsored by: Klara, Inc. Sponsored by: Stormshield
This commit is contained in:
parent
5c2bc3db20
commit
9333e1cbd0
|
@ -42,7 +42,7 @@ __ssp_redirect_raw_impl(int, poll, poll,
|
|||
return (__ssp_real(poll)(fds, nfds, timeout));
|
||||
}
|
||||
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
__ssp_redirect_raw_impl(int, ppoll, ppoll,
|
||||
(struct pollfd fds[], nfds_t nfds,
|
||||
const struct timespec *__restrict timeout,
|
||||
|
@ -53,7 +53,7 @@ __ssp_redirect_raw_impl(int, ppoll, ppoll,
|
|||
|
||||
return (__ssp_real(ppoll)(fds, nfds, timeout, newsigmask));
|
||||
}
|
||||
|
||||
#endif /* __BSD_VISIBLE */
|
||||
__END_DECLS
|
||||
|
||||
#endif /* __SSP_FORTIFY_LEVEL > 0 */
|
||||
|
|
Loading…
Reference in a new issue