diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-07-07 19:19:25 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-07-07 19:19:25 +0000 |
commit | 3926cbd3d95783498563b6b29d39d76e713d36c2 (patch) | |
tree | 798d334e9f6d09b56b1fe686dc60f85c4ab49779 /dev-python/visual/files | |
parent | Fix build failure with Boost 1.50. Patch by Arfrever. (diff) | |
download | gentoo-2-3926cbd3d95783498563b6b29d39d76e713d36c2.tar.gz gentoo-2-3926cbd3d95783498563b6b29d39d76e713d36c2.tar.bz2 gentoo-2-3926cbd3d95783498563b6b29d39d76e713d36c2.zip |
Fix build failure with Boost 1.50. Patch by Arfrever.
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/visual/files')
-rw-r--r-- | dev-python/visual/files/visual-5.74-boost-1.50.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/visual/files/visual-5.74-boost-1.50.patch b/dev-python/visual/files/visual-5.74-boost-1.50.patch new file mode 100644 index 000000000000..a66ded258987 --- /dev/null +++ b/dev-python/visual/files/visual-5.74-boost-1.50.patch @@ -0,0 +1,28 @@ +https://github.com/vpython/visual/issues/3 + +--- dependencies/threadpool/include/threadpool/task_adaptors.hpp ++++ dependencies/threadpool/include/threadpool/task_adaptors.hpp +@@ -135,7 +135,11 @@ + if(m_break_s > 0 || m_break_ns > 0) + { // Sleep some time before first execution + xtime xt; ++#if BOOST_VERSION >= 105000 ++ xtime_get(&xt, TIME_UTC_); ++#else + xtime_get(&xt, TIME_UTC); ++#endif + xt.nsec += m_break_ns; + xt.sec += m_break_s; + thread::sleep(xt); +@@ -146,7 +150,11 @@ + if(m_break_s > 0 || m_break_ns > 0) + { + xtime xt; ++#if BOOST_VERSION >= 105000 ++ xtime_get(&xt, TIME_UTC_); ++#else + xtime_get(&xt, TIME_UTC); ++#endif + xt.nsec += m_break_ns; + xt.sec += m_break_s; + thread::sleep(xt); |