Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 4b7c67a71d05d71be097425765de9685 > files > 1

qutecom-2.2.1-6.mga3.src.rpm

diff -ur a/libs/owutil/thread/src/Thread.cpp b/libs/owutil/thread/src/Thread.cpp
--- a/libs/owutil/thread/src/Thread.cpp	2011-02-10 11:03:43.000000000 +0100
+++ b/libs/owutil/thread/src/Thread.cpp	2012-10-03 14:58:00.000000000 +0200
@@ -24,6 +24,7 @@
 #include <cutil/global.h>
 #include <util/SafeDelete.h>
 
+#include <boost/version.hpp>
 #include <boost/thread/thread.hpp>
 #include <boost/thread/xtime.hpp>
 
@@ -105,7 +106,11 @@
 	}
 
 	boost::xtime xt;
+#if BOOST_VERSION >= 105000
+	boost::xtime_get(&xt, boost::TIME_UTC_);
+#else
 	boost::xtime_get(&xt, boost::TIME_UTC);
+#endif /* BOOST_VERSION >= 105000 */
 	xt.sec += seconds;
 	boost::thread::sleep(xt);
 }