Skip to content

fix error: 'kIOMasterPortDefault' is unavailable: not available on iOS#14

Open
user1121114685 wants to merge 1 commit intoshoenig:mainfrom
user1121114685:patch-1
Open

fix error: 'kIOMasterPortDefault' is unavailable: not available on iOS#14
user1121114685 wants to merge 1 commit intoshoenig:mainfrom
user1121114685:patch-1

Conversation

@user1121114685
Copy link
Copy Markdown

test on m1 cpu ,macos and ios build

@shoenig
Copy link
Copy Markdown
Owner

shoenig commented Nov 10, 2023

Thanks @user1121114685! It does seem like both of kIOMainPortDefault and kIOMasterPortDefault are just NULL. In fact the Apple docs describe it as much in https://developer.apple.com/documentation/iokit/kiomasterportdefault?language=objc

If we just switch to MACH_PORT_NULL as you have here, I think we can just eliminate this versioning macro. Do you mind adding a commit to clean that up?

@user1121114685
Copy link
Copy Markdown
Author

We should wait for the author's results, he has more to consider than we do

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