Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10591: boost::filesystem does not build on iOS 8
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-13 15:54:43
#10591: boost::filesystem does not build on iOS 8
-------------------------------+------------------------
Reporter: anonymous | Owner: bemandawes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.56.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------
Comment (by tiwoc@â¦):
Apple does implement fchmodat from OS X 10.10 and iOS 8.0. Have a look at
the following line of /usr/include/sys/stat.h:
{{{
int fchmodat(int, const char *, mode_t, int)
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
}}}
This means that fchmodat will only be available when '''targeting''' OS X
10.10+ or iOS 8.0+, but the AT_* constants are always defined when
building '''on''' 10.10, so they cannot be used for detection whether
fchmodat is available.
I just posted a patch that uses the __MAC_OS_X_VERSION_MIN_REQUIRED and
__IPHONE_OS_VERSION_MIN_REQUIRED defines for detection. It has been
verified to work well with Boost 1.58.0 on OS X 10.9 and 10.10 (both
targeting 10.9), Linux and Windows (MSVC).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10591#comment:4> 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:18 UTC