From f04851891e13b235e35d9a65caf1d2bc8b84875a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 3 Apr 2025 16:20:20 +0800 Subject: [PATCH] TPM (macOS): fix compiling error on old system Fix #1659 --- src/detection/tpm/tpm_apple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/tpm/tpm_apple.c b/src/detection/tpm/tpm_apple.c index 8e22d5dc9..daef285e9 100644 --- a/src/detection/tpm/tpm_apple.c +++ b/src/detection/tpm/tpm_apple.c @@ -16,7 +16,7 @@ const char* ffDetectTPM(FFTPMResult* result) #else FF_IOOBJECT_AUTO_RELEASE io_service_t t2Service = IOServiceGetMatchingService( - kIOMainPortDefault, + MACH_PORT_NULL, IOServiceMatching("AppleT2")); if (t2Service) {