From: Thiago Jung Bauermann Date: Sun, 9 Apr 2023 16:50:11 +0000 (+0000) Subject: gdb/dwarf: Fix MinGW build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28;p=binutils-gdb.git 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 --- 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 */