From 7d8c076e06419d5f02fb933eb4faa01a73c6384b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Nov 2022 23:03:51 +0100 Subject: [PATCH] lib/fmt/ToBuffer: include fmt/format.h on libfmt 7 to fix linker error --- src/lib/fmt/ToBuffer.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/fmt/ToBuffer.hxx b/src/lib/fmt/ToBuffer.hxx index 5ba36c068..f1dba0beb 100644 --- a/src/lib/fmt/ToBuffer.hxx +++ b/src/lib/fmt/ToBuffer.hxx @@ -32,6 +32,9 @@ #include "util/StringBuffer.hxx" #include +#if FMT_VERSION <= 80000 +#include // for the fmt::buffer::flush() implementation +#endif template [[nodiscard]] [[gnu::pure]]