diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/lock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index b329fc103..d2ce09834 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -672,6 +672,7 @@ static void __attribute__ ((destructor)) fini_##rwlock(void) \ ast_mutex_destroy(&rwlock); \ } #else +#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER #define __AST_RWLOCK_DEFINE(scope, rwlock) \ scope ast_rwlock_t rwlock = AST_RWLOCK_INIT_VALUE #endif |