Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This addresses two issues:
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 onppc
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 onppc
).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.NOTE_TRIGGER
may not be available. If it is not present, butEV_TRIGGER
is, use that one.