id summary reporter owner description type status milestone component version severity resolution keywords cc 4727 thread_time.hpp get_system_time depends on BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK being defined nstewart@… Anthony Williams "Came across this issue while cross-compiling for Android. The implementation of boost::get_system_time depends on microsec_clock, which does not exist unless BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK is defined. The attached patch takes a similar approach to: https://svn.boost.org/trac/boost/changeset/58704 Index: thread_time.hpp =================================================================== --- thread_time.hpp (revision 65916) +++ thread_time.hpp (working copy) @@ -6,6 +6,7 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) +#include #include #include @@ -17,7 +18,11 @@ inline system_time get_system_time() { +#if defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) return boost::date_time::microsec_clock::universal_time(); +#else // defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) + return boost::date_time::second_clock::universal_time(); +#endif // defined(BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK) } namespace detail " Patches closed Boost 1.45.0 thread Boost 1.44.0 Problem fixed