1
0

010-backport-macos-fix.patch 456 B

123456789101112131415
  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
  5. #include <fcntl.h>
  6. #include <sys/stat.h>
  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"
  11. +#endif
  12. +#endif
  13. int main()
  14. {
  15. struct timespec times[2] = { { 0, UTIME_OMIT }, { 0, UTIME_NOW } };