[asterisk-commits] russell: trunk r89253 - /trunk/include/asterisk/lock.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 13 15:01:15 CST 2007


Author: russell
Date: Tue Nov 13 15:01:14 2007
New Revision: 89253

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89253
Log:
This fixes a build error on my mac.  It also works on my linux box.  Let me
know if it breaks any other platform ...

Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?view=diff&rev=89253&r1=89252&r2=89253
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Tue Nov 13 15:01:14 2007
@@ -791,7 +791,7 @@
 #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




More information about the asterisk-commits mailing list