The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d8b51259caee09a4080e524ac254e1f5aecc46cc
commit d8b51259caee09a4080e524ac254e1f5aecc46cc Author: Warner Losh <i...@freebsd.org> AuthorDate: 2025-06-12 03:14:16 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2025-06-12 03:19:05 +0000 ssp: Protect sig2str with proper visibility markers We only define SIG2STR_MAX with careful visibility, but define the fortified version unconditionally. It needs to have the same visibility both places. Fixes: 3d12567133bf Reviewed by: jrtc27, kevans Sponsored by: Netflix --- include/ssp/signal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ssp/signal.h b/include/ssp/signal.h index 9f1a926b9db6..fb1da0db90d1 100644 --- a/include/ssp/signal.h +++ b/include/ssp/signal.h @@ -35,6 +35,7 @@ __BEGIN_DECLS +#if __POSIX_VISIBLE >= 202405 || __BSD_VISIBLE __ssp_redirect_raw_impl(int, sig2str, sig2str, (int signum, char *__restrict str)) { @@ -43,6 +44,7 @@ __ssp_redirect_raw_impl(int, sig2str, sig2str, return (__ssp_real(sig2str)(signum, str)); } +#endif __END_DECLS