[Pixman] 'SIZE_MAX' undeclared on Solaris 9 without including <limits.h>, sqrtf() missing
sandmann at cs.au.dk
Tue Apr 2 03:49:41 PDT 2013
Mojca Miklavec <mojca.miklavec.lists at gmail.com> writes:
> We are using pixman in TeX (TeX Live) and on Solaris there are two
> tiny problems that prevent compilation on Solaris 9:
> 1.) ../../../source/libs/pixman/pixman-0.28.0/pixman/pixman-utils.c:36:17:
> error: 'SIZE_MAX' undeclared (first use in this function)
The SIZE_MAX issue is fixed in master already I believe.
> 2.) "sqrtf" function is missing, see also:
> One can use double sqrt(...) instead, but again, I'm not sure what the
> best patch should be.
Can't you just check for it in configure and if it doesn't exist, define
a macro in pixman-compiler.h that defines it to sqrt?
More information about the Pixman