* src/c++11/futex.cc: Fix order of includes and preprocessor condition.

From-SVN: r219816
This commit is contained in:
Jonathan Wakely 2015-01-18 14:38:53 +00:00 committed by Jonathan Wakely
parent 87361f3098
commit 1e3919acb1
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@
atomic int is not lock-free. Make member variables private.
* src/c++11/futex.cc: Likewise.
* src/c++11/futex.cc: Fix order of includes and preprocessor condition.
2015-01-17 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64638

View File

@ -22,9 +22,8 @@
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
#include <bits/c++config.h>
#if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
#include <bits/atomic_futex.h>
#if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
#include <chrono>
#include <climits>
#include <syscall.h>