NetBSD portability enhancements (bug #969)
authorMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 06:38:08 +0000 (06:38 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 06:38:08 +0000 (06:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2109 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_sip.c
channels/chan_skinny.c

index 1df5e8a..fc6ef0f 100755 (executable)
@@ -35,7 +35,6 @@
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <sys/time.h>
-#include <sys/signal.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -43,6 +42,9 @@
 #include <unistd.h>
 #include <netdb.h>
 #include <fcntl.h>
+#include <pthread.h>
+#include <signal.h>
+#include <sys/signal.h>
 
 #ifdef MYSQL_FRIENDS
 #include <mysql/mysql.h>
index 9d8ba48..36a7045 100755 (executable)
@@ -40,6 +40,8 @@
 #include <netinet/ip.h>
 #include <sys/time.h>
 #include <sys/signal.h>
+#include <signal.h>
+#include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
index 901f413..d4131c6 100755 (executable)
@@ -45,6 +45,8 @@
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <sys/signal.h>
+#include <signal.h>
+#include <pthread.h>
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 
index 37bb089..b2b61ae 100755 (executable)
@@ -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);
index 880ff69..b396605 100755 (executable)
@@ -49,6 +49,8 @@
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <sys/signal.h>
+#include <signal.h>
+#include <pthread.h>
 #include <asterisk/dsp.h>
 #include <ctype.h>