git: a4a271424f5e - stable/13 - posix: POSIX-1.2008 moved SA_* from XSI to base standard

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 14 Mar 2025 17:52:46 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a4a271424f5e8c4c90090d13a52034308fed60b5

commit a4a271424f5e8c4c90090d13a52034308fed60b5
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-10 15:18:43 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-03-14 17:51:46 +0000

    posix: POSIX-1.2008 moved SA_* from XSI to base standard
    
    Starting with POSIX-1.2008, "The SA_RESETHAND, SA_RESTART, SA_SIGINFO,
    SA_NOCLDWAIT, and SA_NODEFER constants are moved from the XSI option to
    the Base." Make them so visible.
    
    PR: 275328
    Sponsored by:           Netflix
    
    (cherry picked from commit 06af7bd12a4a654f5c5e8da41cf329eee3aa61f6)
---
 sys/sys/signal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index fe195d24fc5b..0a8b950a6953 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -386,7 +386,7 @@ struct sigaction {
 #define	SA_NOCLDSTOP	0x0008	/* do not generate SIGCHLD on child stop */
 #endif /* __POSIX_VISIBLE || __XSI_VISIBLE */
 
-#if __XSI_VISIBLE
+#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
 #define	SA_ONSTACK	0x0001	/* take signal on signal stack */
 #define	SA_RESTART	0x0002	/* restart system call on signal return */
 #define	SA_RESETHAND	0x0004	/* reset to SIG_DFL when taking signal */