[Pixman] 'SIZE_MAX' undeclared on Solaris 9 without including <limits.h>, sqrtf() missing
sandmann at cs.au.dk
Thu Apr 4 12:04:25 PDT 2013
Mojca Miklavec <mojca.miklavec.lists at gmail.com> writes:
>>> 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?
> The attached patch works on Solaris 9, but I'm not sure if this is the
> right approach and most probably some math header and math flag is
> missing somewhere next to AC_CHECK_FUNC(sqrtf...). I'm not sure how to
> properly add that.
Right, that patch fails to find sqrtf on Linux. Using AC_CHECK_LIB with
the math library is probably good enough. Also, in order to have the
patch pushed, you will need to send it with a commit message generated
by git format-patch.
More information about the Pixman