* src/c++11/futex.cc: Do not define for gthr-single.h targets.

From-SVN: r220319
This commit is contained in:
Jonathan Wakely 2015-02-01 15:11:23 +00:00 committed by Jonathan Wakely
parent 13fc08e44e
commit 516db2dd07
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-02-01 Jonathan Wakely <jwakely@redhat.com>
* src/c++11/futex.cc: Do not define for gthr-single.h targets.
2015-02-01 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64883

View File

@ -23,6 +23,7 @@
// <http://www.gnu.org/licenses/>.
#include <bits/atomic_futex.h>
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
#if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
#include <chrono>
#include <climits>
@ -94,3 +95,4 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
#endif
#endif