1 --- a/Source/kwsys/kwsysPlatformTestsCXX.cxx
2 +++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx
3 @@ -265,6 +265,12 @@ int main()
4 #ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
7 +#if defined(__APPLE__)
8 +#include <AvailabilityMacros.h>
9 +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300
10 +#error "utimensat not available on macOS < 10.13"
15 struct timespec times[2] = { { 0, UTIME_OMIT }, { 0, UTIME_NOW } };