git: 92bb927c768d - stable/15 - libc: Fix ATOMIC_VAR_INIT visibility
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 Oct 2026 10:06:37 UTC
The branch stable/15 has been updated by kfv:
URL: https://cgit.FreeBSD.org/src/commit/?id=92bb927c768d59ed1e384db692c7f3d08cea851c
commit 92bb927c768d59ed1e384db692c7f3d08cea851c
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-06-21 19:51:14 +0000
Commit: Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-31 10:03:32 +0000
libc: Fix ATOMIC_VAR_INIT visibility
Fixes: 28cecfe27964 ("libc: Restrict ATOMIC_VAR_INIT for C23 conformance")
Reviewed by: fuz, imp
Differential Revision: https://reviews.freebsd.org/D57724
(cherry picked from commit 4c860db34a1b8cff79e7f0d5184423221613e8e1)
---
sys/sys/stdatomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/stdatomic.h b/sys/sys/stdatomic.h
index a3d1f2cd4aeb..24be02e247a3 100644
--- a/sys/sys/stdatomic.h
+++ b/sys/sys/stdatomic.h
@@ -86,7 +86,7 @@
* 7.17.2 Initialization.
*/
-#if __ISO_C_VISIBLE < 2023 || defined(__cplusplus)
+#if __BSD_VISIBLE || __ISO_C_VISIBLE < 2023 || defined(__cplusplus)
#if defined(__CLANG_ATOMICS)
#define ATOMIC_VAR_INIT(value) (value)
#else