|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67853 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-01-09 02:55:09
Author: viboes
Date: 2011-01-09 02:55:08 EST (Sun, 09 Jan 2011)
New Revision: 67853
URL: http://svn.boost.org/trac/boost/changeset/67853
Log:
Boost.Chrono: Try to solve Darwin issue with gettimeofday
Text files modified:
trunk/libs/chrono/example/timeval_demo.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/libs/chrono/example/timeval_demo.cpp
==============================================================================
--- trunk/libs/chrono/example/timeval_demo.cpp (original)
+++ trunk/libs/chrono/example/timeval_demo.cpp 2011-01-09 02:55:08 EST (Sun, 09 Jan 2011)
@@ -31,6 +31,11 @@
#include <boost/type_traits.hpp>
#include <iostream>
+
+#if defined(BOOST_CHRONO_MAC_API)
+#include <sys/time.h> //for gettimeofday and timeval
+#endif
+
#if defined(BOOST_CHRONO_WINDOWS_API)
# include <windows.h>
#endif
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