projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
799fc3b
)
This fixes a build error on my mac. It also works on my linux box. Let me
author
Russell Bryant
<russell@russellbryant.com>
Tue, 13 Nov 2007 21:01:14 +0000
(21:01 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Tue, 13 Nov 2007 21:01:14 +0000
(21:01 +0000)
know if it breaks any other platform ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89253
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
include/asterisk/lock.h
patch
|
blob
|
history
diff --git
a/include/asterisk/lock.h
b/include/asterisk/lock.h
index
2a2ec9b
..
c04d00a
100644
(file)
--- a/
include/asterisk/lock.h
+++ b/
include/asterisk/lock.h
@@
-791,7
+791,7
@@
typedef pthread_rwlock_t ast_rwlock_t;
#ifdef HAVE_PTHREAD_RWLOCK_INITIALIZER
#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER
#else
-#define AST_RWLOCK_INIT_VALUE NULL
+#define AST_RWLOCK_INIT_VALUE { 0 }
#endif
#ifdef DEBUG_THREADS