From 78de3e54bc26aa7943266f2b0984bda9812e39e0 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Fri, 8 May 2026 10:36:38 +0200 Subject: [PATCH] fmt: include for malloc/free declarations Recent FreeBSD -CURRENT builds fail because malloc/free are used without including the proper declarations. Add alongside the other standard library headers inside the existing non-module include block. This matches upstream fmt behavior and fixes builds with newer Clang/libc++ toolchains. --- libfuse/include/fmt/format.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libfuse/include/fmt/format.h b/libfuse/include/fmt/format.h index 50e57144..0bde547c 100644 --- a/libfuse/include/fmt/format.h +++ b/libfuse/include/fmt/format.h @@ -42,6 +42,7 @@ #ifndef FMT_MODULE # include // std::signbit +# include // std::malloc, std::free # include // std::byte # include // uint32_t # include // std::memcpy