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

Use kIOMainPortDefault instead of kIOMasterPortDefault when possible. #101

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

younata
Copy link
Contributor

@younata younata commented Jul 23, 2022

xcode 14 removes the kIOMasterPortDefault symbol. As the documentation notes, this symbol (and kIOMainPortDefault) are both equal to NULL/0, so fall back to 0 when the kIOMainPortDefault symbol is not available (i.e. targeting macOS 11 and earlier/iOS 14 and earlier).

@tikhop
Copy link
Owner

tikhop commented Jul 23, 2022

@younata Thanks for PR, I'll merge it tomorrow!

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.

None yet

2 participants