Fix compile error on macOS.

This commit is contained in:
Sönke Ludwig 2017-01-23 11:52:09 +01:00
parent d6321a2b52
commit e55e23368a

View file

@ -24,6 +24,7 @@ version (Posix) {
import core.sys.posix.unistd : close, read, write; import core.sys.posix.unistd : close, read, write;
import core.stdc.errno : errno, EAGAIN, EINPROGRESS; import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
import core.sys.posix.fcntl; import core.sys.posix.fcntl;
alias sock_t = int;
} }
version (Windows) { version (Windows) {
import core.sys.windows.windows; import core.sys.windows.windows;
@ -41,7 +42,6 @@ version (Windows) {
version (linux) { version (linux) {
extern (C) int eventfd(uint initval, int flags); extern (C) int eventfd(uint initval, int flags);
enum EFD_NONBLOCK = 0x800; enum EFD_NONBLOCK = 0x800;
alias sock_t = int;
} }