mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
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.
This commit is contained in:
parent
57c5018b3a
commit
6b99eb5212
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ scm_i_signals_post_fork ()
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SCM_USE_PTHREAD_THREADS
|
#if SCM_USE_PTHREAD_THREADS
|
||||||
once = SCM_I_PTHREAD_ONCE_INIT;
|
once = (scm_i_pthread_once_t) SCM_I_PTHREAD_ONCE_INIT;
|
||||||
#endif
|
#endif
|
||||||
if (active)
|
if (active)
|
||||||
scm_i_ensure_signal_delivery_thread ();
|
scm_i_ensure_signal_delivery_thread ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue