--- chan_capi-cm-0.6/chan_capi.c.orig 2005-09-20 18:40:15 +0000 +++ chan_capi-cm-0.6/chan_capi.c 2005-12-21 22:56:57 +0000 @@ -18,6 +18,17 @@ #include "config.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include #include #include @@ -33,16 +44,6 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include "xlaw.h" #include "chan_capi20.h" @@ -4011,7 +4012,7 @@ } memset(tmp, 0, sizeof(struct ast_capi_pvt)); - ast_pthread_mutex_init(&(tmp->lock),NULL); + ast_mutex_init(&(tmp->lock)); strncpy(tmp->name, conf->name, sizeof(tmp->name) - 1); strncpy(tmp->context, conf->context, sizeof(tmp->context) - 1);