opensmalltalk cog-spur: update to VMMaker.oscog-eem.3504
[oi-userland.git] / components / library / webkitgtk / patches / 05-FastMalloc.cpp.patch
blob20e686a7259f3c5f1910c845501113c7057be622
1 --- webkitgtk-2.32.3/Source/WTF/wtf/FastMalloc.cpp.orig 2021-03-25 16:14:06.000000000 +0000
2 +++ webkitgtk-2.32.3/Source/WTF/wtf/FastMalloc.cpp 2021-09-20 22:02:37.098644485 +0000
3 @@ -170,7 +170,11 @@
5 ASSERT_IS_WITHIN_LIMIT(size);
6 void* p = nullptr;
7 - posix_memalign(&p, alignment, size);
8 +#ifdef __sun__
9 + memalign(alignment, size);
10 +#else
11 + posix_memalign(&p, alignment, size);
12 +#endif
13 if (UNLIKELY(!p))
14 CRASH();
15 return p;