git: 06af7bd12a4a - main - posix: POSIX-1.2008 moved SA_* from XSI to base standard

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 10 May 2024 15:25:25 UTC
The branch main has been updated by imp:

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

commit 06af7bd12a4a654f5c5e8da41cf329eee3aa61f6
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-10 15:18:43 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-10 15:20:21 +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
---
 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 113b5aaa9fa1..c0b65c0c9ef0 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -372,7 +372,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 */