On Dec 19, 2017, at 8:15 AM, Steven Watanabe via Boost mailto:boost@lists.boost.org> wrote:
AMDG
On 12/19/2017 06:05 AM, John Maddock via Boost wrote:
Current develop appears not to build with XCode 8.0 causing Travis tests
to fail, for example: https://travis-ci.org/boostorg/config/jobs/318188889
It's probably this:
https://github.com/boostorg/build/commit/0c6d0165b096b9e026c933194eff4e12468...
Does anyone know the correct way to detect
whether struct stat has st_mtim (or does it
have a different name on OSX?).
With macOS Sierra (10.12.6) you get stat.st_mtime like this:
#if !defined(__DARWIN_64_BIT_INO_T)
struct stat {
dev_t st_dev; /* [XSI] ID of device containing file */
ino_t st_ino; /* [XSI] File serial number */
mode_t st_mode; /* [XSI] Mode of file (see below) */
nlink_t st_nlink; /* [XSI] Number of hard links */
uid_t st_uid; /* [XSI] User ID of the file */
gid_t st_gid; /* [XSI] Group ID of the file */
dev_t st_rdev; /* [XSI] Device ID */
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
struct timespec st_atimespec; /* time of last access */
struct timespec st_mtimespec; /* time of last data modification */
struct timespec st_ctimespec; /* time of last status change */
#else
time_t st_atime; /* [XSI] Time of last access */
long st_atimensec; /* nsec of last access */
time_t st_mtime; /* [XSI] Last data modification time */