Created attachment 28526 [details] [review] disable blitters-test if memalign is not present Hello! The new blitters-test breaks my compile under MSYS/mingw, because they don't really have memalign. I wrote patch to conditionally build the test only if memalign is detected.
Thanks for the bug report. Does MSYS/mingw have posix_memalign()? Ie., does this work: #include <stdlib.h> int main () { void *p; posix_memalign (&p, 16, 2343); } ?
(In reply to comment #1) > Thanks for the bug report. > > Does MSYS/mingw have posix_memalign()? Ie., does this work: > > #include <stdlib.h> > > int main () > { > void *p; > > posix_memalign (&p, 16, 2343); > } > > ? > It's not got that either - grep -r "memalloc" mingw/include doesn't find anything :( There is something called _aligned_malloc or some such inside MSVCRT70.DLL and higher, which I assume would make the test work - although that's not technically a system DLL, it's on most Windows systems. I didn't feel like messing around trying to make that work ..
Created attachment 28556 [details] [review] A patch Here is a patch that uses posix_memalign(), but falls back to malloc() if that is not available. If you can test it on mingw, I'd appreciated it. Thanks,
At: http://www.freedesktop.org/~sandmann/pixman-0.15.21.tar.gz is a tarball with that patch applied.
(In reply to comment #3) > Created an attachment (id=28556) [details] > A patch > > Here is a patch that uses posix_memalign(), but falls back to malloc() if that > is not available. > > If you can test it on mingw, I'd appreciated it. The test compiles and succeeds. Thanks for looking at this so quickly! sam
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.