From fdbc3585f30eb371c712d311cc1681b71caec2eb Mon Sep 17 00:00:00 2001 From: Matheus Date: Wed, 17 Jun 2026 22:41:57 -0300 Subject: [PATCH] mlibc: work around unimplemented posix_memalign --- patches/mlibc/jinx-working-patch.patch | 13 +++++++++++-- recipes/mlibc | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 4b69111c..ec49b952 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -199,7 +199,7 @@ index 3b7b862..3d86e7a 100644 + } // namespace mlibc diff --git mlibc-clean/options/internal/include/mlibc/allocator.hpp mlibc-workdir/options/internal/include/mlibc/allocator.hpp -index 852620a..a1bfb0a 100644 +index 852620a..7f1aa89 100644 --- mlibc-clean/options/internal/include/mlibc/allocator.hpp +++ mlibc-workdir/options/internal/include/mlibc/allocator.hpp @@ -3,6 +3,7 @@ @@ -210,7 +210,16 @@ index 852620a..a1bfb0a 100644 #include #include -@@ -35,4 +36,34 @@ MemoryAllocator &getAllocator(); +@@ -13,6 +14,8 @@ public: + uintptr_t map(size_t length); + + void unmap(uintptr_t address, size_t length); ++ ++ static constexpr size_t num_buckets = 14; + }; + + typedef frg::slab_pool MemoryPool; +@@ -35,4 +38,34 @@ MemoryAllocator &getAllocator(); #endif // !MLIBC_DEBUG_ALLOCATOR diff --git a/recipes/mlibc b/recipes/mlibc index fe106c38..adda42f2 100644 --- a/recipes/mlibc +++ b/recipes/mlibc @@ -1,6 +1,6 @@ name=mlibc from_source=mlibc -revision=7 +revision=8 hostdeps="xgcc xbinutils pkgconfig" builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg libsmarter" imagedeps="meson ninja-build git build-essential binutils"