Fix astmm for new build process
authorMark Spencer <markster@digium.com>
Thu, 21 Aug 2003 01:06:52 +0000 (01:06 +0000)
committerMark Spencer <markster@digium.com>
Thu, 21 Aug 2003 01:06:52 +0000 (01:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

astmm.c

diff --git a/astmm.c b/astmm.c
index ebc6fc1..ad022fa 100755 (executable)
--- a/astmm.c
+++ b/astmm.c
@@ -23,6 +23,7 @@
 #include <asterisk/cli.h>
 #include <asterisk/logger.h>
 #include <asterisk/options.h>
+#include <asterisk/lock.h>
 
 #define SOME_PRIME 563
 
@@ -55,7 +56,7 @@ static struct ast_region {
 #define HASH(a) \
        (((unsigned long)(a)) % SOME_PRIME)
        
-static ast_mutex_t reglock = PTHREAD_MUTEX_INITIALIZER;
+static ast_mutex_t reglock = AST_MUTEX_INITIALIZER;
 
 static inline void *__ast_alloc_region(size_t size, int which, const char *file, int lineno, const char *func)
 {