This is not specific to __sun but systems without asprintf.
So you should add AC_CHECK_FUNC in configure.{in,ac} and
use #ifdef HAVE_ASPRINTF in the code.Laca On Wed, 2007-10-31 at 12:46 +0000, Damien Carbery wrote: > In totem 2.21.0 there are two references to asprintf(). > This function does not appear to be in Solaris. > > The attached patch does a malloc/sprintf as a replacement (seen in > patches/liboil-01-fixcompile.diff). > > Is this the correct way to do this? The liboil patch doesn't mention any > free(). Should this patch? > > Damien
