-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around Xcode 13 GM SDK issues. (#1964)
Motivation: This is a backport of #1956. Xcode 13 GM shipped with a Swift overlay for libsystem in macOS that marked free's first argument as non-nullable. This leads to an awkward breakage for us, because we're trying to hold a reference to free as a function pointer, and to do that we had an explicit type annotation. We'd like to keep NIO compiling in Xcode 13 GM. Modifications: - Defined the free function as a thunk that passes through to the underlying OS free call, but takes its first argument as non-nullable. Result: Should compile on the Xcode 13 GM again. Co-authored-by: Cory Benfield <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
7 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
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
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