Handle kIOMainPortDefault when targeting macOS < 12 with a new SDK (#8)
diff --git a/cpu.go b/cpu.go index 9e55eb4..502a8cc 100644 --- a/cpu.go +++ b/cpu.go
@@ -8,7 +8,7 @@ // #include <IOKit/IOKitLib.h> // #include <sys/sysctl.h> // -// #ifndef MAC_OS_VERSION_12_0 +// #if !defined(MAC_OS_VERSION_12_0) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_12_0 // #define kIOMainPortDefault kIOMasterPortDefault // #endif //