aboutsummaryrefslogtreecommitdiff
path: root/nodejs/libc++-malloc.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-02-26 14:27:52 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-02-26 14:27:52 +0000
commitf447b1c7ac5ea7ab7975be31ea37bce86a7a3dc0 (patch)
tree8e20067113bc2600a5edbfacedb9a942152f8340 /nodejs/libc++-malloc.patch
parent5c389352778b911ac9df974320e8af1d85861a81 (diff)
downloadalicelinux-f447b1c7ac5ea7ab7975be31ea37bce86a7a3dc0.tar.gz
alicelinux-f447b1c7ac5ea7ab7975be31ea37bce86a7a3dc0.zip
Woodpecker CI 13608c4ce852ed8cb2385aa82504a95e84c9c5d7 [SKIP CI]
Diffstat (limited to 'nodejs/libc++-malloc.patch')
-rw-r--r--nodejs/libc++-malloc.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/nodejs/libc++-malloc.patch b/nodejs/libc++-malloc.patch
new file mode 100644
index 00000000..64ff335c
--- /dev/null
+++ b/nodejs/libc++-malloc.patch
@@ -0,0 +1,28 @@
+diff --git a/deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h b/deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h
+index 50e5714..cd00164 100644
+--- a/deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h
++++ b/deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h
+@@ -44,6 +44,7 @@
+ # include <cmath> // std::signbit
+ # include <cstddef> // std::byte
+ # include <cstdint> // uint32_t
++# include <cstdlib> // std::malloc, std::free
+ # include <cstring> // std::memcpy
+ # include <limits> // std::numeric_limits
+ # include <new> // std::bad_alloc
+@@ -744,12 +745,12 @@ template <typename T> struct allocator {
+
+ T* allocate(size_t n) {
+ FMT_ASSERT(n <= max_value<size_t>() / sizeof(T), "");
+- T* p = static_cast<T*>(malloc(n * sizeof(T)));
++ T* p = static_cast<T*>(std::malloc(n * sizeof(T)));
+ if (!p) FMT_THROW(std::bad_alloc());
+ return p;
+ }
+
+- void deallocate(T* p, size_t) { free(p); }
++ void deallocate(T* p, size_t) { std::free(p); }
+ };
+
+ } // namespace detail
+