swift-nio/Sources/CNIODarwin
Cory Benfield acf5465b5e
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.
2020-07-31 09:57:25 +01:00
..
include Avoid including non-modular headers. (#1605) 2020-07-31 09:57:25 +01:00
shim.c Avoid including non-modular headers. (#1605) 2020-07-31 09:57:25 +01:00