From 20c4eb4226997c0de0a47d5d4c6c2eed21ed9af4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 9 May 2022 11:48:40 -0600 Subject: Fix --disable-threading build PR build/29110 points out that GDB fails to build on mingw when the "win32" thread model is in use. It turns out that the Fedora cross tools using the "posix" thread model, which somehow manages to support std::future, whereas the win32 model does not. While looking into this, I found that the configuring with --disable-threading will also cause a build failure. This patch fixes this build by introducing a compatibility wrapper for std::future. I am not able to test the win32 thread model build, but I'm going to ask the reporter to try this patch. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29110 --- gdb/dwarf2/cooked-index.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h index a460351..1d22958 100644 --- a/gdb/dwarf2/cooked-index.h +++ b/gdb/dwarf2/cooked-index.h @@ -330,7 +330,7 @@ private: /* A future that tracks when the 'finalize' method is done. Note that the 'get' method is never called on this future, only 'wait'. */ - std::future m_future; + gdb::future m_future; }; #endif /* GDB_DWARF2_COOKED_INDEX_H */ -- cgit v1.1