Skip to content
Snippets Groups Projects
Commit ab758ab2 authored by Olle Johansson's avatar Olle Johansson
Browse files

Portability issue - make stringfields work on FreeBSD 4.x (oej/rizzo)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9c35741e
No related branches found
No related tags found
No related merge requests found
......@@ -1022,7 +1022,11 @@ void __ast_string_field_index_build(struct ast_string_field_mgr *mgr,
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment