Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] [build] Currently broken with Xcode 8?
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2017-12-20 19:53:34

On Dec 19, 2017, at 8:15 AM, Steven Watanabe via Boost <boost_at_[hidden]<mailto:boost_at_[hidden]>> wrote:


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:

It's probably this:

 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 */
        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 */

Boost list run by bdawes at, gregod at, cpdaniel at, john at