]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
temporarily revert the way mutex are initialized on BSD systems.
authorLuigi Rizzo <rizzo@icir.org>
Fri, 14 Apr 2006 13:54:53 +0000 (13:54 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 14 Apr 2006 13:54:53 +0000 (13:54 +0000)
This fixes the compilation on OS/X (the change exposed a wrong
assumption on mutex types on OS/X), but still leaves open the
bugs in initializing mutex on bsd systems, which you will see
reported as 'locking failures' on certain operations.
I need to investigate the issue further, but the best thing
i can do now is leave things as they have been for months.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19973 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/lock.h

index e4276dd7f3fd76ad9cc7df1694bec795f8b29553..97deac143fdd0994654b9eb75fecd06018cc711c 100644 (file)
@@ -94,7 +94,7 @@
 #endif
 
 #ifdef BSD
-#if 0 && defined( __GNUC__)
+#if 1 && defined( __GNUC__)
 #define AST_MUTEX_INIT_W_CONSTRUCTORS
 #else
 #define AST_MUTEX_INIT_ON_FIRST_USE