[Asterisk-cvs] asterisk/channels chan_iax.c,1.48,1.49 chan_iax2.c,1.89,1.90 chan_mgcp.c,1.33,1.34 chan_sip.c,1.285,1.286 chan_skinny.c,1.26,1.27

markster at lists.digium.com markster at lists.digium.com
Mon Feb 2 00:29:26 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv17949/channels

Modified Files:
	chan_iax.c chan_iax2.c chan_mgcp.c chan_sip.c chan_skinny.c 
Log Message:
NetBSD portability enhancements (bug #969)


Index: chan_iax.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- chan_iax.c	27 Jan 2004 00:28:52 -0000	1.48
+++ chan_iax.c	2 Feb 2004 06:38:08 -0000	1.49
@@ -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: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- chan_iax2.c	1 Feb 2004 20:08:36 -0000	1.89
+++ chan_iax2.c	2 Feb 2004 06:38:08 -0000	1.90
@@ -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: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- chan_mgcp.c	2 Feb 2004 00:46:59 -0000	1.33
+++ chan_mgcp.c	2 Feb 2004 06:38:08 -0000	1.34
@@ -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: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.285
retrieving revision 1.286
diff -u -d -r1.285 -r1.286
--- chan_sip.c	1 Feb 2004 23:55:17 -0000	1.285
+++ chan_sip.c	2 Feb 2004 06:38:08 -0000	1.286
@@ -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 @@
 		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: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- chan_skinny.c	28 Jan 2004 21:06:03 -0000	1.26
+++ chan_skinny.c	2 Feb 2004 06:38:08 -0000	1.27
@@ -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>
 




More information about the svn-commits mailing list