From b9a6ed2da4ce0a5c78e95f255c557ed845f37bf7 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Fri, 4 Oct 2024 13:48:29 -0700 Subject: [PATCH] add defines in package.Swift --- Package.swift | 4 ++++ aws-common-runtime/aws-c-io | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 7f05e53d..ea19400b 100644 --- a/Package.swift +++ b/Package.swift @@ -134,6 +134,10 @@ cSettingsIO.append(.define("AWS_USE_EPOLL")) awsCIoPlatformExcludes.append("source/windows") awsCIoPlatformExcludes.append("source/linux") awsCIoPlatformExcludes.append("source/s2n") +cSettingsIO.append(.define("__APPLE__")) +cSettingsIO.append(.define("AWS_USE_DISPATCH_QUEUE", .when(platforms: [.iOS, .tvOS]))) +cSettingsIO.append(.define("AWS_USE_SECITEM", .when(platforms: [.iOS, .tvOS]))) +cSettingsIO.append(.define("AWS_USE_KQUEUE", .when(platforms: [.macOS]))) #endif ////////////////////////////////////////////////////////////////////// diff --git a/aws-common-runtime/aws-c-io b/aws-common-runtime/aws-c-io index cde0b76b..3caac5e0 160000 --- a/aws-common-runtime/aws-c-io +++ b/aws-common-runtime/aws-c-io @@ -1 +1 @@ -Subproject commit cde0b76b382f34f68b11f2c6a6b824431434e1ef +Subproject commit 3caac5e053052d14de2b7700a815b67921538aba