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

Don't use deprecated kIOMasterPortDefault #406

Merged
merged 1 commit into from
May 2, 2022
Merged

Conversation

Youw
Copy link
Member

@Youw Youw commented May 2, 2022

kIOMasterPortDefault is deprecated since macOS 12.0.
One alternative is to use named constant kIOMainPortDefault which is not available before macOS 12.0.

Both named constants are just an alias for NULL, so it is simpler to use it directly instead.

Fixes: #377

`kIOMasterPortDefault` is deprecated since macOS 12.0.
One alternative is to use named constant `kIOMainPortDefault` which is not available before macOS 12.0.

Both named constants are just an alias for `NULL`, so it is simpler to use it directly instead.

Fixes: #377
@Youw Youw merged commit 2aeb068 into master May 2, 2022
@Youw Youw deleted the kIOMainPortDefault branch May 2, 2022 11:48
@mcuee mcuee added the macOS Related to macOS backend label May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Related to macOS backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

macOS: kIOMasterPortDefault is deprecated
2 participants