Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67715 - trunk/boost/chrono/detail/inlined/mac
From: vicente.botet_at_[hidden]
Date: 2011-01-06 03:22:36


Author: viboes
Date: 2011-01-06 03:22:31 EST (Thu, 06 Jan 2011)
New Revision: 67715
URL: http://svn.boost.org/trac/boost/changeset/67715

Log:
Boost.Chrono: Try to solve issue

 Test output:
Rev 67704 / Thu, 6 Jan 2011 01:52:50 +0000
Report Time: Thu, 6 Jan 2011 05:03:31 +0000

Compile [2011-01-06 02:46:37 UTC]: fail

    "/usr/bin/g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -g -dynamic -no-cpp-precomp -gdwarf-2 -Wno-long-double -fPIC -Wextra -Wno-long-long -pedantic -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_USE_WINDOWS_H -I".." -c -o "/Volumes/Scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/build/darwin-4.0.1/debug/process_cpu_clocks.o" "../libs/chrono/src/process_cpu_clocks.cpp"

../boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp: In static member function 'static boost::chrono::time_point<boost::chrono::process_real_cpu_clock, boost::chrono::nanoseconds> boost::chrono::process_real_cpu_clock::now(boost::system::error_code&)':
../boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp:47: error: 'tms' was not declared in this scope

Text files modified:
   trunk/boost/chrono/detail/inlined/mac/process_clock.hpp | 1 +
   trunk/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp | 1 +
   2 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/chrono/detail/inlined/mac/process_clock.hpp
==============================================================================
--- trunk/boost/chrono/detail/inlined/mac/process_clock.hpp (original)
+++ trunk/boost/chrono/detail/inlined/mac/process_clock.hpp 2011-01-06 03:22:31 EST (Thu, 06 Jan 2011)
@@ -15,6 +15,7 @@
 #include <boost/assert.hpp>
 
 #include <sys/time.h> //for gettimeofday and timeval
+#include <sys/times.h> //for times
 # include <unistd.h>
 
 namespace boost

Modified: trunk/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp
==============================================================================
--- trunk/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp (original)
+++ trunk/boost/chrono/detail/inlined/mac/process_cpu_clocks.hpp 2011-01-06 03:22:31 EST (Thu, 06 Jan 2011)
@@ -15,6 +15,7 @@
 #include <boost/assert.hpp>
 
 #include <sys/time.h> //for gettimeofday and timeval
+#include <sys/times.h> //for times
 # include <unistd.h>
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk