]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2045: Mac: Build failure with Mac OS X 10.6 v9.1.2045
authorChristian Brabandt <cb@256bit.org>
Fri, 2 Jan 2026 14:24:42 +0000 (14:24 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 2 Jan 2026 14:24:42 +0000 (14:24 +0000)
Problem:  Mac: Build failure with Mac OS X 10.6
          (Sergey Fedorov, after: v9.1.1748)
Solution: Add ifdefs MAC_OS_X_VERSION_10_7 around the code that sets the
          scheduler priority.

fixes:   #19044
related: #18120
closes:  #19054

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/os_unix.c
src/version.c

index 490be1f25471e0f8a6a31d549cfcbaf7672897a1..7798ff7e2443f09e6f0fbc6168fce2617bc86604 100644 (file)
@@ -3681,8 +3681,10 @@ mch_early_init(void)
      * threads’ quality of service classes clamped.
      */
 #ifdef MACOS_X
+# ifdef MAC_OS_X_VERSION_10_7
     integer_t policy = TASK_DEFAULT_APPLICATION;
     task_policy_set(mach_task_self(), TASK_CATEGORY_POLICY, &policy, 1);
+# endif
 #endif
 }
 
index ca2125168c956f447d25ad2eb997721101349f21..bca913e99801b541bca1b8b33a5e2fb0cc692daf 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2045,
 /**/
     2044,
 /**/