aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_oss.c')
-rwxr-xr-xchannels/chan_oss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 538bfe1f8..86370f971 100755
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -25,6 +25,7 @@
#include <asterisk/pbx.h>
#include <asterisk/config.h>
#include <asterisk/cli.h>
+#include <asterisk/utils.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
@@ -1011,7 +1012,7 @@ int load_module()
}
ast_destroy(cfg);
}
- pthread_create(&sthread, NULL, sound_thread, NULL);
+ ast_pthread_create(&sthread, NULL, sound_thread, NULL);
return 0;
}