This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
qutecom/qutecom-2.2.1-libboost-1.50.patch

24 lines
670 B
Diff
Raw Permalink Normal View History

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);
}