forked from macports/macports-ports
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wolfssl: enable dispatch on 10.6 ppc
- Loading branch information
1 parent
d98cc8a
commit f7fca4c
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
devel/wolfssl/files/0010-macOS-enable-dispatch-on-10.6-powerpc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From d9535aaabb5a55f22ab946448be1a879ed0bca97 Mon Sep 17 00:00:00 2001 | ||
From: Sergey Fedorov <[email protected]> | ||
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 | ||
@@ -1513,8 +1513,7 @@ typedef struct w64wrapper { | ||
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 <dispatch/dispatch.h> | ||
typedef struct COND_TYPE { | ||
wolfSSL_Mutex mutex; |