diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index 0cfc1e23fa..011bed4206 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -5,11 +5,11 @@ #include #include +#include #include #include #include -#include #include #include @@ -23,7 +23,7 @@ void GenerateTemplateResults(const std::vector& bench // nothing to write, bail out return; } - std::ofstream fout(filename); + fsbridge::ofstream fout{fs::PathFromString(filename)}; if (fout.is_open()) { ankerl::nanobench::render(tpl, benchmarkResults, fout); } else { diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 9859c2a5f6..99889a3e96 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include