configure: require boost.thread v3

This commit is contained in:
Andrzej Rybczak
2013-07-11 03:20:01 +02:00
parent 1731ee2d38
commit fb9df0caee
3 changed files with 4 additions and 4 deletions

View File

@@ -146,9 +146,9 @@ AC_CHECK_LIB(boost_regex$BOOST_LIB_SUFFIX, main, LDFLAGS="$LDFLAGS -lboost_regex
dnl =============================
dnl = checking for boost.thread =
dnl =============================
CPPFLAGS="$CPPFLAGS -DBOOST_THREAD_VERSION=2"
AC_DEFINE([BOOST_THREAD_VERSION], [3], [require boost.thread v3])
AC_CHECK_HEADERS([boost/thread.hpp], ,
AC_MSG_ERROR([boost/thread.hpp is missing or your boost version is too old (boost.thread v2 is required)])
AC_MSG_ERROR([boost/thread.hpp is missing or your boost version is too old (boost.thread v3 is required)])
)
AC_CHECK_LIB(boost_thread$BOOST_LIB_SUFFIX, main, LDFLAGS="$LDFLAGS -lboost_thread$BOOST_LIB_SUFFIX",
AC_MSG_ERROR([no boost.thread library found])

View File

@@ -84,7 +84,7 @@ void Lastfm::getResult()
w.flush();
w.refresh();
// reset m_worker so it's no longer valid
m_worker = boost::unique_future<LastFm::Service::Result>();
m_worker = boost::future<LastFm::Service::Result>();
}
#endif // HVAE_CURL_CURL_H

View File

@@ -82,7 +82,7 @@ private:
std::wstring m_title;
std::shared_ptr<LastFm::Service> m_service;
boost::unique_future<LastFm::Service::Result> m_worker;
boost::future<LastFm::Service::Result> m_worker;
};
extern Lastfm *myLastfm;