changeset 32066:1b2d6aa29267 v9.0.1364

patch 9.0.1364: build error with older Mac OS Commit: https://github.com/vim/vim/commit/da77693b17ff1f17f03ac78f0298294cf7d1087f Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Tue Feb 28 15:51:23 2023 +0000 patch 9.0.1364: build error with older Mac OS Problem: Build error with older Mac OS. Solution: Adjust #ifdef. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/12074)
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Feb 2023 17:00:04 +0100
parents c9b92f64ce24
children 5e31c1bb408f
files src/os_mac.h src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_mac.h
+++ b/src/os_mac.h
@@ -272,7 +272,8 @@
 
 # include <dispatch/dispatch.h>
 
-# ifndef MAC_OS_X_VERSION_10_12
+# if !defined(MAC_OS_X_VERSION_10_12) \
+	|| (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12)
 typedef int clockid_t;
 # endif
 # ifndef CLOCK_REALTIME
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1364,
+/**/
     1363,
 /**/
     1362,