patch 9.1.2045: Mac: Build failure with Mac OS X 10.6

Commit: 
https://github.com/vim/vim/commit/bc12a938d9fea5a98b55eaa158b4a4a76a491201
Author: Christian Brabandt <[email protected]>
Date:   Fri Jan 2 14:24:42 2026 +0000

    patch 9.1.2045: Mac: Build failure with Mac OS X 10.6
    
    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 <[email protected]>

diff --git a/src/os_unix.c b/src/os_unix.c
index 490be1f25..7798ff7e2 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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
 }
 
diff --git a/src/version.c b/src/version.c
index ca2125168..bca913e99 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2045,
 /**/
     2044,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vbgAI-00AVE8-5X%40256bit.org.

Raspunde prin e-mail lui