[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 08/09: Fix compilation when SCM_I_PTHREAD_ONCE_INIT is n
From: |
Andy Wingo |
Subject: |
[Guile-commits] 08/09: Fix compilation when SCM_I_PTHREAD_ONCE_INIT is not aggregate |
Date: |
Mon, 22 Apr 2024 09:21:40 -0400 (EDT) |
wingo pushed a commit to branch main
in repository guile.
commit 6b99eb521237802abc8c63c9ea4cea792ea33bf5
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Mon Apr 22 15:09:45 2024 +0200
Fix compilation when SCM_I_PTHREAD_ONCE_INIT is not aggregate
* libguile/scmsigs.c (scm_i_signals_post_fork): It's possible for
SCM_I_PTHREAD_ONCE_INIT to be a braced initializer. In that case when
this initializer is re-used as an assignment, it needs the type to
instead be treated as a C11 literal. Fixes compilation on Mac OS.
Thanks to Tony Garnock-Jones for the patch.
---
libguile/scmsigs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index 7fd3fd8f1..be96dbd5c 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -302,7 +302,7 @@ scm_i_signals_post_fork ()
}
#if SCM_USE_PTHREAD_THREADS
- once = SCM_I_PTHREAD_ONCE_INIT;
+ once = (scm_i_pthread_once_t) SCM_I_PTHREAD_ONCE_INIT;
#endif
if (active)
scm_i_ensure_signal_delivery_thread ();
- [Guile-commits] branch main updated (112b617f5 -> e2fad2025), Andy Wingo, 2024/04/22
- [Guile-commits] 03/09: Merge branch 'topic/fix-reset-literal-pool' into 'main', Andy Wingo, 2024/04/22
- [Guile-commits] 01/09: replace use of uninitialized variable size in reset_literal_pool, Andy Wingo, 2024/04/22
- [Guile-commits] 08/09: Fix compilation when SCM_I_PTHREAD_ONCE_INIT is not aggregate,
Andy Wingo <=
- [Guile-commits] 05/09: aarch64: Fix swap_atomic retry, Andy Wingo, 2024/04/22
- [Guile-commits] 09/09: Merge Lightening update branch, Andy Wingo, 2024/04/22
- [Guile-commits] 06/09: aarch64: Add support for LSE atomics, Andy Wingo, 2024/04/22
- [Guile-commits] 04/09: Fix CI, Andy Wingo, 2024/04/22
- [Guile-commits] 02/09: set size to known value before init, Andy Wingo, 2024/04/22
- [Guile-commits] 07/09: Merge remote-tracking branch 'lightening/main', Andy Wingo, 2024/04/22