diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-10-05 20:44:52 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-10-05 21:14:44 +0200 |
commit | 90805b16b6d17dff861d456edf829858386ec559 (patch) | |
tree | e643ded1641c5a7eac084f19ddf4c42247e582f0 /tools/cmake/patches | |
parent | 07a99a83f21ac6d23ec26affdd032424aff6a6e9 (diff) | |
download | upstream-90805b16b6d17dff861d456edf829858386ec559.tar.gz upstream-90805b16b6d17dff861d456edf829858386ec559.tar.bz2 upstream-90805b16b6d17dff861d456edf829858386ec559.zip |
cmake: fix build error with Xcode 9 on macOS 12
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/cmake/patches')
-rw-r--r-- | tools/cmake/patches/010-backport-macos-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/cmake/patches/010-backport-macos-fix.patch b/tools/cmake/patches/010-backport-macos-fix.patch new file mode 100644 index 0000000000..76e92dcb0e --- /dev/null +++ b/tools/cmake/patches/010-backport-macos-fix.patch @@ -0,0 +1,15 @@ +--- 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 } }; |