mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
(SCM_I_PTHREAD_ONCE_INIT): Use
SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT to cope with Solaris. Reported by Claes Wallin.
This commit is contained in:
parent
065366d0df
commit
acc028b0eb
1 changed files with 5 additions and 1 deletions
|
@ -66,8 +66,12 @@ extern pthread_mutexattr_t scm_i_pthread_mutexattr_recursive[1];
|
|||
/* Onces
|
||||
*/
|
||||
#define scm_i_pthread_once_t pthread_once_t
|
||||
#define SCM_I_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT
|
||||
#define scm_i_pthread_once pthread_once
|
||||
#if SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT
|
||||
#define SCM_I_PTHREAD_ONCE_INIT { PTHREAD_ONCE_INIT }
|
||||
#else
|
||||
#define SCM_I_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT
|
||||
#endif
|
||||
|
||||
/* Thread specific storage
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue