aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/complaints.c2
-rwxr-xr-xgdb/configure1
2 files changed, 3 insertions, 0 deletions
diff --git a/gdb/complaints.c b/gdb/complaints.c
index debafde..07c0f7e 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -24,7 +24,9 @@
#include "top.h"
#include "gdbsupport/selftest.h"
#include <unordered_map>
+#if CXX_STD_THREAD
#include <mutex>
+#endif
/* Map format strings to counters. */
diff --git a/gdb/configure b/gdb/configure
index c3d5cf7..98cd488 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -20854,6 +20854,7 @@ else
# endif
#endif /* __MINGW32__ || __CYGWIN__ */
#include <thread>
+ #include <mutex>
void callback() { }
int
main ()