diff --git a/.github/workflows/ci-macvim.yaml b/.github/workflows/ci-macvim.yaml index 7d256e873b..25e49436ab 100644 --- a/.github/workflows/ci-macvim.yaml +++ b/.github/workflows/ci-macvim.yaml @@ -237,6 +237,7 @@ jobs: - name: Check version run: | ${VIM_BIN} --version + ${VIM_BIN} -u NONE -i NONE --not-a-term -esNX -V1 -c 'echo "\nprof_nsec:" .. has("prof_nsec") .. "\n"' -c quit ${VIM_BIN} -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit ${VIM_BIN} -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit diff --git a/src/os_mac.h b/src/os_mac.h index 34fe1f14cb..792b5eb2bf 100644 --- a/src/os_mac.h +++ b/src/os_mac.h @@ -264,6 +264,14 @@ typedef int clockid_t; # define CLOCK_MONOTONIC 1 # endif +# if !defined(MAC_OS_X_VERSION_10_12) \ + || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12) +// This happens when building on a newer machine for a min deployment lower +// than 10.12. The build environment supports clock_gettime(), but the target +// runtime doesn't. +# undef HAVE_CLOCK_GETTIME +# endif + struct itimerspec { struct timespec it_interval; // timer period