From 9382043b5c51f0b812ccdac2f632578765993959 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 15 Jun 2026 08:15:36 +0200 Subject: [PATCH] include missing header malloc.h building using musl fails due to missing header: ``` ../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:747:28: error: use of undeclared identifier 'malloc' 747 | T* p = static_cast(malloc(n * sizeof(T))); | ^~~~~~ ../../deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h:752:35: error: call to function 'free' that is neither visible in the template definition nor found by argument-dependent lookup 752 | void deallocate(T* p, size_t) { free(p); } | ^ ``` see-also: https://bugs.gentoo.org/977458 fix: #63920 Signed-off-by: Pepper Gray --- deps/LIEF/third-party/spdlog/include/spdlog/fmt/bundled/format.h | 1 + 1 file changed, 1 insertion(+) 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 50e571442e5393..0744c9e2d91788 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 @@ -39,6 +39,7 @@ #endif #include "base.h" +#include "malloc.h" #ifndef FMT_MODULE # include // std::signbit