From d48fbb38e9a58ff9ca236e3f2c49cc0df493987b Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Mon, 26 Oct 2026 13:22:11 -0700 Subject: [PATCH] Fixing Linux compile by wrapping with Macro --- Sources/OAuthKit/Storage/Keychain.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/OAuthKit/Storage/Keychain.swift b/Sources/OAuthKit/Storage/Keychain.swift index 94d8b27..81bb4b6 100644 --- a/Sources/OAuthKit/Storage/Keychain.swift +++ b/Sources/OAuthKit/Storage/Keychain.swift @@ -5,10 +5,9 @@ // Created by Kevin McKee // -import Foundation #if canImport(Security) +import Foundation import Security -#endif /// A helper class used to interact with Keychain storage access. Wraps all storage write operations with threadsafe locks. class Keychain: OAuth.Storage, @unchecked Sendable { @@ -148,3 +147,4 @@ class Keychain: OAuth.Storage, @unchecked Sendable { return status == noErr } } +#endif