aboutsummaryrefslogtreecommitdiffstats
path: root/testing/galera/musl-page-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/galera/musl-page-size.patch')
-rw-r--r--testing/galera/musl-page-size.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/galera/musl-page-size.patch b/testing/galera/musl-page-size.patch
new file mode 100644
index 0000000000..a0903e4278
--- /dev/null
+++ b/testing/galera/musl-page-size.patch
@@ -0,0 +1,16 @@
+--- 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);
+