[asterisk-commits] branch oej/t38passthrough r12045 - in /team/oej/t38passthrough: ./ res/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 6 04:38:04 MST 2006


Author: oej
Date: Mon Mar  6 05:37:59 2006
New Revision: 12045

URL: http://svn.digium.com/view/asterisk?rev=12045&view=rev
Log:
Reset automerge

Modified:
    team/oej/t38passthrough/   (props changed)
    team/oej/t38passthrough/channel.c
    team/oej/t38passthrough/res/Makefile
    team/oej/t38passthrough/utils.c

Propchange: team/oej/t38passthrough/
------------------------------------------------------------------------------
    automerge = skrep

Propchange: team/oej/t38passthrough/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Propchange: team/oej/t38passthrough/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Mar  6 05:37:59 2006
@@ -1,1 +1,1 @@
-/trunk:1-12005
+/trunk:1-12044

Modified: team/oej/t38passthrough/channel.c
URL: http://svn.digium.com/view/asterisk/team/oej/t38passthrough/channel.c?rev=12045&r1=12044&r2=12045&view=diff
==============================================================================
--- team/oej/t38passthrough/channel.c (original)
+++ team/oej/t38passthrough/channel.c Mon Mar  6 05:37:59 2006
@@ -2122,7 +2122,7 @@
 		if (f->frametype == AST_FRAME_CONTROL && f->subclass == AST_CONTROL_HANGUP)
 			done = 1;	/* force a break */
 		else if (f->frametype == AST_FRAME_TEXT) {		/* what we want */
-			buf = strndup((char *) f->data, f->datalen);	/* dup and break */
+			buf = ast_strndup((char *) f->data, f->datalen);	/* dup and break */
 			done = 1;
 		}
 		ast_frfree(f);

Modified: team/oej/t38passthrough/res/Makefile
URL: http://svn.digium.com/view/asterisk/team/oej/t38passthrough/res/Makefile?rev=12045&r1=12044&r2=12045&view=diff
==============================================================================
--- team/oej/t38passthrough/res/Makefile (original)
+++ team/oej/t38passthrough/res/Makefile Mon Mar  6 05:37:59 2006
@@ -32,7 +32,18 @@
   MODS:=$(filter-out res_osp.so,$(MODS))
 endif
 
-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/xusr/include/net-snmp/net-snmp-config.h),)
+# NETsnmp has some difficulties on some platforms (conflict with unload_module)
+# Until we figure out if the collission is version-specific or what to do
+# we have disabled res_snmp on OS/X and *BSD
+ifeq ($(OSARCH),Darwin)
+  MODS:=$(filter-out res_snmp.so,$(MODS))
+else
+  ifeq ($(findstring BSD,$(OSARCH)),BSD)
+    MODS:=$(filter-out res_snmp.so,$(MODS))
+  endif
+endif
+
+ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/net-snmp/net-snmp-config.h),)
   MODS:=$(filter-out res_snmp.so,$(MODS))
 else
   SNMP_LDLIBS+=$(shell net-snmp-config --agent-libs)

Modified: team/oej/t38passthrough/utils.c
URL: http://svn.digium.com/view/asterisk/team/oej/t38passthrough/utils.c?rev=12045&r1=12044&r2=12045&view=diff
==============================================================================
--- team/oej/t38passthrough/utils.c (original)
+++ team/oej/t38passthrough/utils.c Mon Mar  6 05:37:59 2006
@@ -1022,7 +1022,11 @@
 	va_list ap1, ap2;
 
 	va_start(ap1, format);
+#if defined(__FreeBSD__)
+	va_start(ap2, format);		/* va_copy does not exist on FreeBSD */
+#else
 	va_copy(ap2, ap1);
+#endif
 
 	needed = vsnprintf(mgr->pool->base + mgr->used, mgr->space, format, ap1) + 1;
 



More information about the asterisk-commits mailing list