swift-nio/Sources/CNIOLinux
Alex Blewitt 1fa9f15aca Explicitly define constants through Posix and import errno.h (#400)
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.
2018-05-10 20:12:33 +02:00
..
include Explicitly define constants through Posix and import errno.h (#400) 2018-05-10 20:12:33 +02:00
shim.c use accept4 and SOCK_NONBLOCK on Linux (#124) 2018-03-12 20:12:20 +01:00