From 239233f4e0639a8444d736bbcde95f6ab302ce51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 30 Mar 2026 09:17:41 +0800 Subject: [PATCH] Swap (macOS): don't check if swap is enabled on macOS 26 or later --- src/detection/swap/swap_apple.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/detection/swap/swap_apple.c b/src/detection/swap/swap_apple.c index acfb734f9..1f87595d5 100644 --- a/src/detection/swap/swap_apple.c +++ b/src/detection/swap/swap_apple.c @@ -11,8 +11,10 @@ const char* ffDetectSwap(FFlist* result) { } if (xsw.xsu_total == 0) { - if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) { - return NULL; // Swap is disabled + if (!__builtin_available(macOS 26.0, *)) { + if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) { // No longer available in macOS 26.0 + return NULL; // Swap is disabled + } } }