$OpenBSD: patch-src_wallet_test_db_tests_cpp,v 1.1 2021/08/16 05:40:11 rsadowski Exp $

Index: src/wallet/test/db_tests.cpp
--- src/wallet/test/db_tests.cpp.orig
+++ src/wallet/test/db_tests.cpp
@@ -18,7 +18,11 @@ BOOST_AUTO_TEST_CASE(getwalletenv_file)
     std::string test_name = "test_name.dat";
     const fs::path datadir = GetDataDir();
     fs::path file_path = datadir / test_name;
+#if BOOST_VERSION >= 107700
+    std::ofstream f(BOOST_FILESYSTEM_C_STR(file_path));
+#else
     std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR);
+#endif // BOOST_VERSION >= 107700
     f.close();
 
     std::string filename;
