From bd5f028d6d60ea65d226d84aba3e52634afea455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=94=E7=9B=9F=E5=B0=91=E4=BE=A0?= Date: Thu, 9 Nov 2023 12:18:12 +0800 Subject: [PATCH] fix error: 'kIOMasterPortDefault' is unavailable: not available on iOS test on m1 cpu ,macos and ios build --- cpu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.go b/cpu.go index 502a8cc..12d7bce 100644 --- a/cpu.go +++ b/cpu.go @@ -67,7 +67,7 @@ package m1cpu // // CFMutableDictionaryRef matching = IOServiceMatching("AppleARMIODevice"); // io_iterator_t iter; -// IOServiceGetMatchingServices(kIOMainPortDefault, matching, &iter); +// IOServiceGetMatchingServices(MACH_PORT_NULL, matching, &iter); // // const size_t bufsize = 512; // io_object_t obj;