]> granicus.if.org Git - vim/commitdiff
patch 9.0.1364: build error with older Mac OS v9.0.1364
authorYee Cheng Chin <ychin.git@gmail.com>
Tue, 28 Feb 2023 15:51:23 +0000 (15:51 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 Feb 2023 15:51:23 +0000 (15:51 +0000)
Problem:    Build error with older Mac OS.
Solution:   Adjust #ifdef. (Yee Cheng Chin, closes #12074)

src/os_mac.h
src/version.c

index a7b1dba06a4ead50b8be4e52ca2c4d41c0e28bd5..2b5cbe45727b2d231d25d869191ea6ca489bc20e 100644 (file)
 
 # 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
index aa9f88424bf2dda862b05933ba1b2194ef5ff2a9..7ae6d8bcafa98130c1334f3b6cfd37df3fb36056 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1364,
 /**/
     1363,
 /**/