1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/galera/musl-page-size.patch
Jake Buchholz Göktürk 8407fe8b03 community/galera: moved from testing
galera version is up-to-date, and is building on all supported archs.
2022-11-25 19:36:23 +00:00

16 lines
616 B
Diff

--- a/galerautils/src/gu_alloc.cpp
+++ b/galerautils/src/gu_alloc.cpp
@@ -29,10 +29,11 @@
if (gu_likely(size <= left_))
{
/* to avoid too frequent allocation, make it (at least) 64K */
- static page_size_type const PAGE_SIZE(gu_page_size_multiple(1 << 16));
+ /* was PAGE_SIZE but collided with a define */
+ static page_size_type const PG_SZ(gu_page_size_multiple(1 << 16));
page_size_type const page_size
- (std::min(std::max(size, PAGE_SIZE), left_));
+ (std::min(std::max(size, PG_SZ), left_));
Page* ret = new HeapPage (page_size);