You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
456 B
15 lines
456 B
--- a/Source/kwsys/kwsysPlatformTestsCXX.cxx
|
|
+++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx
|
|
@@ -265,6 +265,12 @@ int main()
|
|
#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT
|
|
#include <fcntl.h>
|
|
#include <sys/stat.h>
|
|
+#if defined(__APPLE__)
|
|
+#include <AvailabilityMacros.h>
|
|
+#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 } };
|
|
|