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

error: use of undeclared identifier 'kIOMainPortDefault' #284

Open
ryandesign opened this issue Mar 16, 2024 · 0 comments
Open

error: use of undeclared identifier 'kIOMainPortDefault' #284

ryandesign opened this issue Mar 16, 2024 · 0 comments

Comments

@ryandesign
Copy link

nvtop 3.1.0 fails to build on macOS 11:

src/extract_gpuinfo_apple.m:92:66: error: use of undeclared identifier 'kIOMainPortDefault'
    const io_service_t gpu_service = IOServiceGetMatchingService(kIOMainPortDefault, IORegistryEntryIDMatching(registry_id));
                                                                 ^
1 error generated.

Indeed kIOMainPortDefault was introduced in macOS 12.

I couldn't find a statement of which macOS versions are supported so I don't know if this limitation is intentional.

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

No branches or pull requests

1 participant