<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 307ea52993e59e830717991ac88c9037c0f442e1 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov &lt;vital.had@gmail.com&gt;
Date: Sat, 20 Apr 2024 02:09:31 +0800
Subject: [PATCH] keychain_mac: fix build on &lt; 10.9

---
 src/keychain_mac.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git src/keychain_mac.cpp src/keychain_mac.cpp
index 1b84113..ecf604c 100644
--- src/keychain_mac.cpp
+++ src/keychain_mac.cpp
@@ -28,6 +28,8 @@
 
 #include &lt;Security/Security.h&gt;
 
+#include &lt;AvailabilityMacros.h&gt;
+
 #include "keychain.h"
 
 namespace {
@@ -92,7 +94,9 @@ void updateError(keychain::Error &amp;err, OSStatus status) {
         break;
 
     // potential errors in case the user needs to unlock the keychain first
+#if MAC_OS_X_VERSION_MIN_REQUIRED &gt; 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;
</pre></body></html>