From d9535aaabb5a55f22ab946448be1a879ed0bca97 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 31 Dec 2024 03:37:59 +0800 Subject: [PATCH] macOS: enable dispatch on 10.6 powerpc This assumes 10.6.8 on powerpc. API of 10a190 differs and will not work. --- wolfcrypt/src/wc_port.c | 3 +-- wolfssl/wolfcrypt/types.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 2ee85e3f3..82dfd0471 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -4074,8 +4074,7 @@ char* mystrnstr(const char* s1, const char* s2, unsigned int n) } #ifdef WOLFSSL_COND - #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 \ - && !defined(__ppc__) + #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 /* Apple style dispatch semaphore */ int wolfSSL_CondInit(COND_TYPE* cond) { diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index f8042cf82..ff769d471 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -1866,8 +1866,7 @@ typedef size_t THREAD_TYPE; #define WOLFSSL_THREAD #elif defined(WOLFSSL_PTHREADS) - #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 \ - && !defined(__ppc__) + #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 #include typedef struct COND_TYPE { wolfSSL_Mutex mutex;