libstdc++: Add missing header to some tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 Nov 2020 16:17:33 +0000 (16:17 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 19 Nov 2020 16:17:33 +0000 (16:17 +0000)
These tests use std::this_thread::sleep_for without including <thread>.

libstdc++-v3/ChangeLog:

* testsuite/30_threads/async/async.cc: Include <thread>.
* testsuite/30_threads/future/members/93456.cc: Likewise.

libstdc++-v3/testsuite/30_threads/async/async.cc
libstdc++-v3/testsuite/30_threads/future/members/93456.cc

index 1c779bfbcad4523732978e809eccb9d2fca5507f..b06c2553c952b623231b259f49a07d492585b39f 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include <future>
+#include <thread>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 8d6a5148ce3c751d821ac624ca682102211d805a..9d1cbcef001366adf35ce28d8b7901046bfcbe71 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include <future>
+#include <thread>
 #include <chrono>
 #include <climits>
 #include <testsuite_hooks.h>