Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12617: clock_gettime not available on OS X 10.11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-31 06:27:47
#12617: clock_gettime not available on OS X 10.11
-------------------------------+--------------------------
Reporter: djh | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------
Comment (by rjain):
We applied the following patch. So even if CLOCK_MONOTINIC and
CLOCK_MONOTONIC_RAW are defined we explicitly include "mach_time.h". Hence
no reference to _clock_gettime()
{{{
//Xcode 8 fix due to ::clock_gettime issue
# if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
# include <mach/mach_time.h> // mach_absolute_time,
mach_timebase_info_data_t
# define BOOST_INTERPROCESS_MATCH_ABSOLUTE_TIME
# elif defined(CLOCK_MONOTONIC_PRECISE) //BSD
# define BOOST_INTERPROCESS_CLOCK_MONOTONIC CLOCK_MONOTONIC_PRECISE
# elif defined(CLOCK_MONOTONIC_RAW) //Linux
# define BOOST_INTERPROCESS_CLOCK_MONOTONIC CLOCK_MONOTONIC_RAW
# elif defined(CLOCK_HIGHRES) //Solaris
# define BOOST_INTERPROCESS_CLOCK_MONOTONIC CLOCK_HIGHRES
# elif defined(CLOCK_MONOTONIC) //POSIX (AIX, BSD, Linux,
Solaris)
# define BOOST_INTERPROCESS_CLOCK_MONOTONIC CLOCK_MONOTONIC
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12617#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:21 UTC