diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-19 01:10:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-09-19 01:10:27 +0200 |
commit | cea6489e43e9756f93f025291154a65fc35aa12c (patch) | |
tree | ab20e75b2378080600dc5604e2c90ed81070c5f7 | |
parent | 5f09d5e32706e1baf09bf27897c30e4bcfcb8fd6 (diff) |
Make PTHREAD_ONCE_INIT a symbolic value
as required by Posix
* sysdeps/pthread/bits/once.h (__PTHREAD_ONCE_INIT): Cast initializer to
(struct __pthread_once).
-rw-r--r-- | sysdeps/pthread/bits/once.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/bits/once.h b/sysdeps/pthread/bits/once.h index 05895b9..53dbfd3 100644 --- a/sysdeps/pthread/bits/once.h +++ b/sysdeps/pthread/bits/once.h @@ -29,6 +29,6 @@ struct __pthread_once }; #define __PTHREAD_ONCE_INIT \ - { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } + (struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } #endif /* bits/once.h */ |