From: Christian Brabandt Date: Fri, 2 Jan 2026 14:24:42 +0000 (+0000) Subject: patch 9.1.2045: Mac: Build failure with Mac OS X 10.6 X-Git-Tag: v9.1.2045^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc12a938d9fea5a98b55eaa158b4a4a76a491201;p=thirdparty%2Fvim.git 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 --- diff --git a/src/os_unix.c b/src/os_unix.c index 490be1f254..7798ff7e24 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 ca2125168c..bca913e998 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, /**/