commit | d072be324478a48756fe15b4e19018cd261db242 | [log] [tgz] |
---|---|---|
author | Gilad Maymon <gilad.maymon@wiz.io> | Fri May 05 04:20:04 2023 +0300 |
committer | GitHub <noreply@github.com> | Thu May 04 20:20:04 2023 -0500 |
tree | 9c539a934b0fefab9d19029b8dc8c489aedb89d2 | |
parent | 32788e5e6e5811f58b1cd5d8c57e942501114a4c [diff] |
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 //