aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2024-07-30 16:34:09 +0000
committerKyle Evans <kevans@FreeBSD.org>2024-07-30 16:36:58 +0000
commit9333e1cbd028d9b387709dfce5260db99c09b3d0 (patch)
treeb642dd8d970047eef280b0ef6e000da661d8e17d /include
parent5c2bc3db201a4fe8d7911cf816bea104d5dc2138 (diff)
downloadsrc-9333e1cbd028d9b387709dfce5260db99c09b3d0.tar.gz
src-9333e1cbd028d9b387709dfce5260db99c09b3d0.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/ssp/poll.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ssp/poll.h b/include/ssp/poll.h
index 66992009e928..815e73eb46b7 100644
--- a/include/ssp/poll.h
+++ b/include/ssp/poll.h
@@ -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 */