diff options
4 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile index ee0d4690d83..4b3467bc4e8 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile +++ b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile @@ -1,4 +1,5 @@ CXX_SOURCES := locking.cpp +CXXFLAGS_EXTRAS := -std=c++11 ENABLE_THREADS := YES include Makefile.rules diff --git a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp index fab3aa8c563..8288a668fe8 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp +++ b/lldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp @@ -1,5 +1,7 @@ #include <stdio.h> #include <thread> +#include <mutex> +#include <condition_variable> std::mutex contended_mutex; diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile index ee0d4690d83..4b3467bc4e8 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile @@ -1,4 +1,5 @@ CXX_SOURCES := locking.cpp +CXXFLAGS_EXTRAS := -std=c++11 ENABLE_THREADS := YES include Makefile.rules diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp index fab3aa8c563..8288a668fe8 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp +++ b/lldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp @@ -1,5 +1,7 @@ #include <stdio.h> #include <thread> +#include <mutex> +#include <condition_variable> std::mutex contended_mutex; |