diff options
-rw-r--r-- | gdb/complaints.c | 2 | ||||
-rwxr-xr-x | gdb/configure | 1 | ||||
-rwxr-xr-x | gdbserver/configure | 1 | ||||
-rw-r--r-- | gdbsupport/common.m4 | 1 | ||||
-rwxr-xr-x | gdbsupport/configure | 1 |
5 files changed, 6 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 () diff --git a/gdbserver/configure b/gdbserver/configure index 026d250..2da525e 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -9561,6 +9561,7 @@ else # endif #endif /* __MINGW32__ || __CYGWIN__ */ #include <thread> + #include <mutex> void callback() { } int main () diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4 index 240ec00..bef3964 100644 --- a/gdbsupport/common.m4 +++ b/gdbsupport/common.m4 @@ -114,6 +114,7 @@ AC_DEFUN([GDB_AC_COMMON], [ # endif #endif /* __MINGW32__ || __CYGWIN__ */ #include <thread> + #include <mutex> void callback() { }]], [[std::thread t(callback);]])], gdb_cv_cxx_std_thread=yes, diff --git a/gdbsupport/configure b/gdbsupport/configure index ae99125..a218b06 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -12335,6 +12335,7 @@ else # endif #endif /* __MINGW32__ || __CYGWIN__ */ #include <thread> + #include <mutex> void callback() { } int main () |