From 698d56b68533760931ea6e1509fea73cdcf35b67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 20 Oct 2012 15:22:37 +0200
Subject: Fixed compilation problems against Boost >= 1.50.0.

Change-Id: I7c7c3456c9007caffda1a6b4b721c01aa47d0a6d

diff --git a/Swiften/Base/sleep.cpp b/Swiften/Base/sleep.cpp
index 7161217..0f1937b 100644
--- a/Swiften/Base/sleep.cpp
+++ b/Swiften/Base/sleep.cpp
@@ -7,12 +7,17 @@
 #include <Swiften/Base/sleep.h>
 
 #include <boost/thread.hpp>
+#include <boost/version.hpp>
 
 namespace Swift {
 
 void sleep(unsigned int msecs) {
 	boost::xtime xt;
+#if BOOST_VERSION >= 105000
+	boost::xtime_get(&xt, boost::TIME_UTC_);
+#else
 	boost::xtime_get(&xt, boost::TIME_UTC);
+#endif
 	xt.nsec += msecs*1000000;
 	boost::thread::sleep(xt);
 }
-- 
cgit v0.10.2-6-g49f6