Skip to content

Fixes for earlier macOS#7932

Merged
SparkiDev merged 2 commits intowolfSSL:masterfrom
barracuda156:dispatch
Sep 10, 2024
Merged

Fixes for earlier macOS#7932
SparkiDev merged 2 commits intowolfSSL:masterfrom
barracuda156:dispatch

Conversation

@barracuda156
Copy link
Copy Markdown
Contributor

Description

This addresses two issues:

  1. Current code simply assumes libdispatch is available on macOS. This is not always true though: it does not exist prior to 10.6, and is not really tested on ppc on 10.6 (there are also potential related problem here: for example, blocks are not supported in gcc, as of now, while clang is broken on ppc).
    Instead, use libdispatch where it exists for sure and is known to work, and otherwise use genetic POSIX. The code is unchanged, this simply changes the condition so that the right implementation is picked. There is no effect for non-Apple platforms.

  2. NOTE_TRIGGER may not be available. If it is not present, but EV_TRIGGER is, use that one.

@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Sep 3, 2024

Hi @barracuda156, thanks for your PR's. In order to accept a third party contribution we need a signed agreement. Please email support at wolfssl dot com to get that process started.
Thank you, David Garske, wolfSSL

@anhu
Copy link
Copy Markdown
Member

anhu commented Sep 9, 2024

Contributor agreement has been approved. We're good to move forward on this.

@dgarske dgarske requested review from SparkiDev and douzzer September 9, 2024 21:21
@dgarske dgarske assigned SparkiDev and unassigned dgarske Sep 9, 2024
@SparkiDev SparkiDev merged commit 500a3b4 into wolfSSL:master Sep 10, 2024
@barracuda156 barracuda156 deleted the dispatch branch September 10, 2024 00:36
@barracuda156
Copy link
Copy Markdown
Contributor Author

@SparkiDev Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants