diff options
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 37bb0894e..b2b61ae96 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -48,6 +48,8 @@ #include <fcntl.h> #include <netdb.h> #include <arpa/inet.h> +#include <pthread.h> +#include <signal.h> #include <sys/signal.h> #include <netinet/in_systm.h> #include <netinet/ip.h> @@ -6792,7 +6794,7 @@ int unload_module() return -1; } if (!ast_mutex_lock(&monlock)) { - if (monitor_thread && (monitor_thread != -2)) { + if (monitor_thread && ((int)monitor_thread != -2)) { pthread_cancel(monitor_thread); pthread_kill(monitor_thread, SIGURG); pthread_join(monitor_thread, NULL); |