aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem_aopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_modem_aopen.c')
-rwxr-xr-xchannels/chan_modem_aopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_modem_aopen.c b/channels/chan_modem_aopen.c
index 80a1402f9..b832f8092 100755
--- a/channels/chan_modem_aopen.c
+++ b/channels/chan_modem_aopen.c
@@ -16,7 +16,7 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
-#include <pthread.h>
+#include <asterisk/lock.h>
#include <asterisk/vmodem.h>
#include <asterisk/module.h>
#include <asterisk/frame.h>
@@ -34,7 +34,7 @@ static char *breakcmd = "\0x10\0x03";
static char *desc = "A/Open (Rockwell Chipset) ITU-2 VoiceModem Driver";
int usecnt;
-pthread_mutex_t usecnt_lock = PTHREAD_MUTEX_INITIALIZER;
+pthread_mutex_t usecnt_lock = AST_MUTEX_INITIALIZER;
static char *aopen_idents[] = {
/* Identify A/Open Modem */