re PR libstdc++/59680 (Compile error in thread.cc)

PR libstdc++/59680
	* src/c++11/thread.cc (__sleep_for): Fix call to ::sleep.

From-SVN: r206504
This commit is contained in:
Jonathan Wakely 2014-01-09 23:39:31 +00:00 committed by Jonathan Wakely
parent cd4447e235
commit 4bc0ec3261
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@
* include/bits/stl_vector.h (vector<>::_M_move_assign): Restore
support for non-Movable types.
PR libstdc++/59680
* src/c++11/thread.cc (__sleep_for): Fix call to ::sleep.
2014-01-08 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_vector.h (std::vector<>::_M_move_assign): Pass

View File

@ -183,7 +183,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
::usleep(__us);
}
# else
::sleep(__s.count() + (__ns >= 1000000));
::sleep(__s.count() + (__ns.count() >= 1000000));
# endif
#elif defined(_GLIBCXX_HAVE_WIN32_SLEEP)
unsigned long ms = __ns.count() / 1000000;