From: Mark Spencer Date: Thu, 21 Aug 2003 01:06:52 +0000 (+0000) Subject: Fix astmm for new build process X-Git-Tag: 0.5.0~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e280cb5f96d25f67c91f82f832f9c47f2f6756c3;p=thirdparty%2Fasterisk.git Fix astmm for new build process git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1389 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/astmm.c b/astmm.c index ebc6fc1e0e..ad022faed9 100755 --- a/astmm.c +++ b/astmm.c @@ -23,6 +23,7 @@ #include #include #include +#include #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) {