From 935affe678ba6fe0f096f8fe3475ad7d9a4cd6fc Mon Sep 17 00:00:00 2001 From: emmett1 Date: Thu, 26 Feb 2026 02:24:57 +0000 Subject: nodejs: updated to 25.7.0 --- repos/extra/nodejs/libc++-malloc.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 repos/extra/nodejs/libc++-malloc.patch (limited to 'repos/extra/nodejs/libc++-malloc.patch') diff --git a/repos/extra/nodejs/libc++-malloc.patch b/repos/extra/nodejs/libc++-malloc.patch new file mode 100644 index 00000000..64ff335c --- /dev/null +++ b/repos/extra/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 // std::signbit + # include // std::byte + # include // uint32_t ++# include // std::malloc, std::free + # include // std::memcpy + # include // std::numeric_limits + # include // std::bad_alloc +@@ -744,12 +745,12 @@ template struct allocator { + + T* allocate(size_t n) { + FMT_ASSERT(n <= max_value() / sizeof(T), ""); +- T* p = static_cast(malloc(n * sizeof(T))); ++ T* p = static_cast(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 + -- cgit v1.2.3