[asterisk-commits] trunk r12012 - /trunk/utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 6 03:49:17 MST 2006


Author: oej
Date: Mon Mar  6 04:49:15 2006
New Revision: 12012

URL: http://svn.digium.com/view/asterisk?rev=12012&view=rev
Log:
Portability issue - make stringfields work on FreeBSD 4.x (oej/rizzo)

Modified:
    trunk/utils.c

Modified: trunk/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/utils.c?rev=12012&r1=12011&r2=12012&view=diff
==============================================================================
--- trunk/utils.c (original)
+++ trunk/utils.c Mon Mar  6 04:49:15 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