Skip to content
Snippets Groups Projects
Commit 7b5f917a authored by Jakub Pelka's avatar Jakub Pelka :cat2:
Browse files

Add build support for < macOS 12

parent e9ac03b4
No related branches found
No related tags found
No related merge requests found
Pipeline #251919 passed
......@@ -57,7 +57,13 @@ kern_return_t SMCOpen(void)
io_object_t device;
CFMutableDictionaryRef matchingDictionary = IOServiceMatching("AppleSMC");
#if MAC_OS_X_VERSION_10_16
result = IOServiceGetMatchingServices(kIOMainPortDefault, matchingDictionary, &iterator);
#else
result = IOServiceGetMatchingServices(kIOMasterPortDefault, matchingDictionary, &iterator);
#endif
if (result != kIOReturnSuccess) {
printf("Error: IOServiceGetMatchingServices() = %08x\n", result);
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment