wt: fix build against boost 1.50+
authorFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 17:22:31 +0000 (17:22 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 11 Dec 2012 17:22:31 +0000 (17:22 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34636

libs/wt/patches/200-fix_boost_1_50_build.patch [new file with mode: 0644]

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 (file)
index 0000000..0ffcabf
--- /dev/null
@@ -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);
+