* src/c++11/futex.cc: Do not define for gthr-single.h targets.
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Feb 2015 15:11:23 +0000 (15:11 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Feb 2015 15:11:23 +0000 (15:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220319 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/futex.cc

index 67cfb60..dbcf81d 100644 (file)
@@ -1,5 +1,9 @@
 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
        * include/c_global/cstdio (gets): Use __deprecated__ attribute instead
        of deprecated.
index 1336779..a7f0200 100644 (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