Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1cpu: handle kIOMainPortDefault for macOS < 12 #6

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

ZhongRuoyu
Copy link
Contributor

@ZhongRuoyu ZhongRuoyu commented Apr 4, 2023

kIOMainPortDefault was renamed from kIOMasterPortDefault in macOS Monterey. This patch makes sure m1cpu can be built on Big Sur, too.

This issue was discovered while packaging Telegraf (an indirect dependant of m1cpu) for Homebrew at Homebrew/homebrew-core#127477.

`kIOMainPortDefault` was renamed from `kIOMasterPortDefault` in macOS
Monterey. This patch makes sure m1cpu can be built on Big Sur, too.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
Copy link
Owner

@shoenig shoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks @ZhongRuoyu!

@shoenig shoenig merged commit 32788e5 into shoenig:main Apr 4, 2023
@ZhongRuoyu ZhongRuoyu deleted the monterey-master-to-main branch April 5, 2023 04:55
@ZhongRuoyu
Copy link
Contributor Author

And thank you, @shoenig!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants