From b338b5d94a64cd042b74f22e88f092a2d60daa4f Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Wed, 2 Oct 2024 14:11:21 -0700 Subject: [PATCH] lint error and differetiate between macOS and iOS/tvOS --- Package.swift | 3 +++ Source/AwsCommonRuntimeKit/io/TLSSecitemOptions.swift | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 4b132026..9623bde0 100644 --- a/Package.swift +++ b/Package.swift @@ -134,6 +134,9 @@ cSettingsIO.append(.define("AWS_USE_EPOLL")) awsCIoPlatformExcludes.append("source/windows") awsCIoPlatformExcludes.append("source/linux") awsCIoPlatformExcludes.append("source/s2n") +#if os(macOS) +cSettingsIO.append(.define("AWS_USE_KQUEUE")) +#else // iOS, tvOS cSettingsIO.append(.define("AWS_USE_DISPATCH_QUEUE")) cSettingsIO.append(.define("AWS_USE_SECITEM")) #endif diff --git a/Source/AwsCommonRuntimeKit/io/TLSSecitemOptions.swift b/Source/AwsCommonRuntimeKit/io/TLSSecitemOptions.swift index be309a8d..c976af1f 100644 --- a/Source/AwsCommonRuntimeKit/io/TLSSecitemOptions.swift +++ b/Source/AwsCommonRuntimeKit/io/TLSSecitemOptions.swift @@ -3,7 +3,7 @@ import AwsCIo -public class TLSSecitemOptions : CStruct { +public class TLSSecitemOptions: CStruct { var rawValue: UnsafeMutablePointer public init(