Commit 4c7399e9 by Jonathan Wakely Committed by Jonathan Wakely

Fix test failure due to Networking TS headers using mutexes

Only include the Networking headers for targets with Gthreads, so that
the uses of std::mutex and std::condition_variable don't cause errors.

	* testsuite/experimental/names.cc: Only include Networking TS headers
	on targets with the necessary Gthreads support.

From-SVN: r271437
parent be9e458d
2019-05-20 Jonathan Wakely <jwakely@redhat.com>
* testsuite/experimental/names.cc: Only include Networking TS headers
on targets with the necessary Gthreads support.
2019-05-20 Marek Polacek <polacek@redhat.com> 2019-05-20 Marek Polacek <polacek@redhat.com>
CWG 2094 - volatile scalars are trivially copyable. CWG 2094 - volatile scalars are trivially copyable.
......
...@@ -56,11 +56,13 @@ ...@@ -56,11 +56,13 @@
#include <experimental/utility> #include <experimental/utility>
#include <experimental/vector> #include <experimental/vector>
// Networking // Networking
#include <experimental/buffer> #ifdef _GLIBCXX_HAS_GTHREADS
#include <experimental/internet> # include <experimental/buffer>
#include <experimental/io_context> # include <experimental/internet>
#include <experimental/net> # include <experimental/io_context>
#include <experimental/netfwd> # include <experimental/net>
#include <experimental/socket> # include <experimental/netfwd>
#include <experimental/timer> # include <experimental/socket>
#include <experimental/executor> # include <experimental/timer>
# include <experimental/executor>
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment