2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Try to fix the build for older versions of XCode.

This commit is contained in:
Steven Watanabe
2017-12-19 10:27:31 -07:00
parent 0388086b3f
commit 8aa702aaf4

View File

@@ -332,7 +332,11 @@ void file_query_posix_( file_info_t * const info )
info->is_dir = statbuf.st_mode & S_IFDIR ? 1 : 0;
info->exists = 1;
#if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809
#if defined(OS_MACOSX)
timestamp_init( &info->time, statbuf.st_mtimespec.tv_sec, statbuf.st_mtimespec.tv_nsec );
#else
timestamp_init( &info->time, statbuf.st_mtim.tv_sec, statbuf.st_mtim.tv_nsec );
#endif
#else
timestamp_init( &info->time, statbuf.st_mtime, 0 );
#endif