From a77063947a66888c93d1f74835221fd2776009ec Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 11 Dec 2012 17:22:31 +0000 Subject: [PATCH] wt: fix build against boost 1.50+ Signed-off-by: Florian Fainelli SVN-Revision: 34636 --- .../wt/patches/200-fix_boost_1_50_build.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libs/wt/patches/200-fix_boost_1_50_build.patch diff --git a/libs/wt/patches/200-fix_boost_1_50_build.patch b/libs/wt/patches/200-fix_boost_1_50_build.patch new file mode 100644 index 000000000..0ffcabf34 --- /dev/null +++ b/libs/wt/patches/200-fix_boost_1_50_build.patch @@ -0,0 +1,27 @@ +--- a/src/threadpool/threadpool/task_adaptors.hpp ++++ b/src/threadpool/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); + -- 2.30.2