Jan Tobias Muehlberg wrote: > Mark Wedel: > > [snprintf()] > >> I put code in common/porting.c that will define a snprintf if configure >> doesn't detect one. Since __vsnprintf is probably not very portable, my >> implementation was to juse call vsprintf, and check ret against max - >> if ret is bigger, just abort. > > > Well, it works this way. Thanks for fixing. > At least for compiling on Sun you'll need to add '#include <stdarg.h>'. > I'm not sure but it should be the same for other unix-like OSs including > Linux? Most systems don't seem to need stdarg.h - linux doesn't, solaris 7+ doesn't. But there is no harm in adding it, so that's what I'll do.