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
385 stars 139 forks source link

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

Closed al45tair closed 7 months ago

al45tair commented 7 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.