[chrono, trunk] linux compile fix

today's trunk does not compile correctly. this trivial patch fixes the issue: thanks, tim Index: boost/chrono/detail/inlined/posix/thread_clock.hpp =================================================================== --- boost/chrono/detail/inlined/posix/thread_clock.hpp (revision 72154) +++ boost/chrono/detail/inlined/posix/thread_clock.hpp (working copy) @@ -21,6 +21,7 @@ thread_clock::time_point thread_clock::now( ) { + struct timespec ts; #if defined CLOCK_THREAD_CPUTIME_ID // get the timespec associated to the thread clock if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) ) @@ -31,7 +32,6 @@ clockid_t clock_id; pthread_getcpuclockid(pth, &clock_id); // get the timespec associated to the thread clock - struct timespec ts; if ( ::clock_gettime( clock_id, &ts ) ) #endif { @@ -49,6 +49,7 @@ } thread_clock::time_point thread_clock::now( system::error_code & ec ) { + struct timespec ts; #if defined CLOCK_THREAD_CPUTIME_ID // get the timespec associated to the thread clock if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) ) @@ -59,7 +60,6 @@ clockid_t clock_id; pthread_getcpuclockid(pth, &clock_id); // get the timespec associated to the thread clock - struct timespec ts; if ( ::clock_gettime( clock_id, &ts ) ) #endif {

Tim Blechmann-2 wrote:
today's trunk does not compile correctly. this trivial patch fixes the issue:
Thanks, Committed revision 72155. Best, Vicente -- View this message in context: http://boost.2283326.n4.nabble.com/chrono-trunk-linux-compile-fix-tp3549445p... Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (2)
-
Tim Blechmann
-
Vicente Botet