Fix test failure due to Networking TS headers using mutexes
authorJonathan Wakely <jwakely@redhat.com>
Mon, 20 May 2019 20:21:15 +0000 (21:21 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 20 May 2019 20:21:15 +0000 (21:21 +0100)
commit4c7399e992337bdafe37b665ab3e92a97b5dc051
treeb3cdf6bf0443ccbb7b31ef183f5df39458d87c36
parentbe9e458d8bed984fe13bd7a6daf76bb34ef3ed7f
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
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/experimental/names.cc