Skip to content

Commit bc12a93

Browse files
committed
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 <cb@256bit.org>
1 parent a7e671f commit bc12a93

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/os_unix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3681,8 +3681,10 @@ mch_early_init(void)
36813681
* threads’ quality of service classes clamped.
36823682
*/
36833683
#ifdef MACOS_X
3684+
# ifdef MAC_OS_X_VERSION_10_7
36843685
integer_t policy = TASK_DEFAULT_APPLICATION;
36853686
task_policy_set(mach_task_self(), TASK_CATEGORY_POLICY, &policy, 1);
3687+
# endif
36863688
#endif
36873689
}
36883690

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2045,
737739
/**/
738740
2044,
739741
/**/

0 commit comments

Comments
 (0)