[Samba] snprintf, vsnprintf

Tim Potter tpot at samba.org
Wed Jun 25 23:52:07 GMT 2003


On Wed, Jun 25, 2003 at 06:53:45PM -0400, William Jojo wrote:

> I'm tracking a compiling issue with 2.2.8a on AIX 5.2-ML01 with IBM C for
> AIX 6.0 and i'm having an issue with lib/snprintf.c
> 
> The first thing i noticed is that "includes.h" is not included which is
> in many other places, but I'm sure there are reaasons.

I'm not sure why either but there probably is a good reason.  (-:

> The other thing is there is a check at the beginning for HAVE_SNPRINTF,
> HAVE_VSNPRINTF and HAVE_C99_VSNPRINTF to include stdio.h - that one i
> get. the one i don't get is at line 790:
> 
> #if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_SNPRINTF)
> 
> i can't find a HAVE_C99_SNPRINTF anywhere in configure unless it's under
> another name, but it seems to me based on the description given by
> "mbp" in the code that it may need to look like this:

This should be HAVE_C99_VSNPRINTF (it's fixed in Samba 3.0).  You might
get a different error though.  Give it a go and let me know what
happens.


Tim.



More information about the samba mailing list