From d49b95b8048b59c1e7867698a95cbdcd8e0a3980 Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Thu, 21 Sep 2017 07:13:25 -0400 Subject: KWSys 2017-09-21 (ff912e4d) Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit ff912e4d39e0a580b9d9be5430fffa46c0e1f94d (master). Upstream Shortlog ----------------- Brad King (1): aa9f3a82 macOS: Account for deployment target when checking for utimensat --- kwsysPlatformTestsCXX.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kwsysPlatformTestsCXX.cxx b/kwsysPlatformTestsCXX.cxx index 01c6951..e67d436 100644 --- a/kwsysPlatformTestsCXX.cxx +++ b/kwsysPlatformTestsCXX.cxx @@ -265,6 +265,12 @@ int main() #ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT #include #include +#if defined(__APPLE__) +#include +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300 +#error "utimensat not available on macOS < 10.13" +#endif +#endif int main() { struct timespec times[2] = { { 0, UTIME_OMIT }, { 0, UTIME_NOW } }; -- cgit v0.12