From 29218c622f6a391fe8fd5eb8aa840c3950b5322b Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sat, 20 Apr 2024 02:09:31 +0800 Subject: [PATCH] keychain_mac: fix build on < 10.9 --- src/keychain_mac.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/keychain_mac.cpp b/src/keychain_mac.cpp index 1b84113..ecf604c 100644 --- a/src/keychain_mac.cpp +++ b/src/keychain_mac.cpp @@ -28,6 +28,8 @@ #include +#include + #include "keychain.h" namespace { @@ -92,7 +94,9 @@ void updateError(keychain::Error &err, OSStatus status) { break; // potential errors in case the user needs to unlock the keychain first +#if MAC_OS_X_VERSION_MIN_REQUIRED > 1080 case errSecUserCanceled: // user pressed the Cancel button +#endif case errSecAuthFailed: // too many failed password attempts case errSecInteractionRequired: // user interaction required but not allowed err.type = keychain::ErrorType::AccessDenied;