]> granicus.if.org Git - vim/commitdiff
patch 8.2.5071: with some Mac OS version clockid_t is redefined v8.2.5071
authorichizok <gclient.gaap@gmail.com>
Thu, 9 Jun 2022 13:50:10 +0000 (14:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Jun 2022 13:50:10 +0000 (14:50 +0100)
Problem:    With some Mac OS version clockid_t is redefined.
Solution:   Adjust #ifdefs. (Ozaki Kiichi, closes #10549)

src/os_mac.h
src/version.c

index 646dff414c9252e5f3b2fe62263f229deebb09aa..a7b1dba06a4ead50b8be4e52ca2c4d41c0e28bd5 100644 (file)
 
 # include <dispatch/dispatch.h>
 
-# if !defined(MAC_OS_X_VERSION_10_12) || \
-       (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)
+# ifndef MAC_OS_X_VERSION_10_12
 typedef int clockid_t;
 # endif
 # ifndef CLOCK_REALTIME
-#   define CLOCK_REALTIME 0
+#  define CLOCK_REALTIME 0
 # endif
 # ifndef CLOCK_MONOTONIC
-#   define CLOCK_MONOTONIC 1
+#  define CLOCK_MONOTONIC 1
 # endif
 
 struct itimerspec
index 5163254aed86ba0c8ed3a9d9fcf5e70d9921c635..ebfd0d45feef0b89094807cd2c478a898d346055 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5071,
 /**/
     5070,
 /**/