From f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Sun, 9 Apr 2023 16:50:11 +0000 Subject: [PATCH] gdb/dwarf: Fix MinGW build Unfortunately MinGW doesn't support std::future yet, so this causes the build to fail. Use GDB's version which provides a fallback for this case. Tested for regressions on native aarch64-linux. Approved-By: Tom Tromey --- gdb/dwarf2/cooked-index.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h index f2664929e52..0d6f3e5aa0e 100644 --- a/gdb/dwarf2/cooked-index.h +++ b/gdb/dwarf2/cooked-index.h @@ -442,7 +442,7 @@ private: vec_type m_vector; /* A future that tracks when the 'index_write' method is done. */ - std::future m_write_future; + gdb::future m_write_future; }; #endif /* GDB_DWARF2_COOKED_INDEX_H */ -- 2.30.2