On 13/08/13 20:15, Piotr Stanczyk wrote:
Thanks Laurent. I'll fold the patch in, are you on the develop
branch?

Oh, sorry, I didn't specify: I merely downloaded the 2.0.1 tarball, for
both.

I have found that Solaris 11 does include posix_memalign().
So with more investigation, I think that bit should be added to
configure.ac:

dnl Check for posix_memalign() support
AC_CHECK_FUNCS(posix_memalign, [
        AC_DEFINE(HAVE_POSIX_MEMALIGN, 1,
                [Define to 1 if you have the posix_memalign() function.])])


And then the patch would have this instead of __sun:

     void* ptr = 0;
+#if defined(HAVE_POSIX_MEMALIGN,)
     posix_memalign(&ptr, alignment, size);


Sorry, I ve not managed to test it, I did a CVS checkout but I lack some
bits (and knowledge of the thing).

Laurent

_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to