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

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 2, 2026, 9:31:08 AM (yesterday) Jan 2
to vim...@googlegroups.com
patch 9.1.2045: Mac: Build failure with Mac OS X 10.6

Commit: https://github.com/vim/vim/commit/bc12a938d9fea5a98b55eaa158b4a4a76a491201
Author: Christian Brabandt <c...@256bit.org>
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 <c...@256bit.org>

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,
/**/
Reply all
Reply to author
Forward
0 new messages