mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
* Changes to support building with Musl Define `_GNU_SOURCE` in the `Package.swift` rather than in `shim.c` (this is required because `_GNU_SOURCE` affects modular headers). Add an import for Musl to IO.swift. Add code to disable `SIGPIPE` to `SocketProtocols.swift`. Remove types from a pile of functions in `System.swift`; Swift will use the correct type automatically (except in cases where there are multiple versions of a function, e.g. `ioctl()`, in which case we need to be explicit which one we mean). * Fix some test failures caused by failing to define `_GNU_SOURCE`. A couple of the integration tests grab code and build it outside of the normal `Package.swift`, so they needed fixing to define `_GNU_SOURCE` themselves.