diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-23 19:55:38 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-23 19:55:38 +0000 |
commit | 53039c7bd40e0966c3d3056e10536093b0ef156c (patch) | |
tree | e2d370dc0167e70820b19722dbd905bda180f0e3 /include/asterisk/lock.h | |
parent | f1545046a70d13e73c61afa2f36e9736caf183d7 (diff) |
We should probably declare the lock... and not just the constructor/deconstructor.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48928 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/lock.h')
-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 c44929fa5..ca6663a9c 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -666,6 +666,7 @@ static inline int ast_rwlock_trywrlock(ast_rwlock_t *prwlock) #ifndef HAVE_PTHREAD_RWLOCK_INITIALIZER #define __AST_RWLOCK_DEFINE(scope, rwlock) \ + scope ast_rwlock_t rwlock; \ static void __attribute__ ((constructor)) init_##rwlock(void) \ { \ ast_rwlock_init(&rwlock); \ |