Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid including non-modular headers. (#1605)
Motivation: We included netinet/ip.h in CNIODarwin, which unfortunately is not modularised. This causes issues when using SwiftPM to create xcodeproj files. There's no real reason to do it this way, when we can just as easily abstract the issue. Modifications: - Moved netinet/ip.h to the .c file instead of the .h. - Defined some exported namespaced integers to correspond to the macros. - Performed platform abstraction in Posix instead of everywhere. Result: - Creating xcodeproj files should be fine.
- Loading branch information
Showing
4 changed files
with
31 additions
and
16 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
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