[Xorp-cvs] XORP cvs commit: xorp/libxorp

Hasso Tepper hasso@linux.ee
Wed, 21 Dec 2005 10:54:47 +0200


Bruce M Simpson wrote:
> I read that __va_copy is meant to be recognized by gcc 2.95.x vintage,
> but can't find any header definitions for it in the default compiler
> search paths.

Yes, FreeBSD hasn't many headers from gcc-2.95. If there are Berkeley 
equivalents, these are used. If FreeBSD 4.x must be supported platform, 
the only solution is to define your own va_copy if va_copy and __va_copy 
are not defined. Note, that in the gcc-2.95 __va_copy define is trivial:

#define __va_copy(dest, src) (dest) = (src)

However it might not work on every platform in earth. See  
http://coding.derkeiler.com/Archive/C_CPP/comp.lang.c/2003-11/4133.html
for example for more info.


-- 
Hasso Tepper