mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Explicitly define constants through Posix and import errno.h Motivation: We implicitly depend on errno's ENOENT in Linux.swift, but don't explicitly import errno.h. Similarly, in some cases the compiler can be confused as to where SHUT_* come from, so make them an exported value from Posix instead. Result: Compiles successfully on Linux and Darwin.