LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libtorrent-rasterbar-boost-time_utc.patch of Package libtorrent-rasterbar (Project openSUSE:Factory)

Index: libtorrent-rasterbar-0.15.10/src/alert.cpp
===================================================================
--- libtorrent-rasterbar-0.15.10.orig/src/alert.cpp
+++ libtorrent-rasterbar-0.15.10/src/alert.cpp
@@ -68,7 +68,7 @@ namespace libtorrent {
 		int secs = total_seconds(max_wait);
 		max_wait -= seconds(secs);
 		boost::xtime xt;
-		boost::xtime_get(&xt, boost::TIME_UTC);
+		boost::xtime_get(&xt, boost::TIME_UTC_);
 		xt.sec += secs;
 		boost::int64_t nsec = xt.nsec + total_microseconds(max_wait) * 1000;
 		if (nsec > 1000000000)
Index: libtorrent-rasterbar-0.15.10/test/setup_transfer.cpp
===================================================================
--- libtorrent-rasterbar-0.15.10.orig/test/setup_transfer.cpp
+++ libtorrent-rasterbar-0.15.10/test/setup_transfer.cpp
@@ -109,7 +109,7 @@ bool print_alerts(libtorrent::session& s
 void test_sleep(int millisec)
 {
 	boost::xtime xt;
-	boost::xtime_get(&xt, boost::TIME_UTC);
+	boost::xtime_get(&xt, boost::TIME_UTC_);
 	boost::uint64_t nanosec = (millisec % 1000) * 1000000 + xt.nsec;
 	int sec = millisec / 1000;
 	if (nanosec > 1000000000)