apple / swift-nio-ssl

TLS Support for SwiftNIO, based on BoringSSL.
https://swiftpackageindex.com/apple/swift-nio-ssl/main/documentation/niossl
Apache License 2.0
393 stars 142 forks source link

Define _DARWIN_C_SOURCE on Darwin to fix the build in Xcode. #451

Closed al45tair closed 11 months ago

al45tair commented 11 months ago

For some reason, we need this in order to build in Xcode, but using SwiftPM directly from the command line works. Anyway, defining it should be harmless for non-Darwin platforms.