Fix Linux compilation.

This commit is contained in:
Sönke Ludwig 2017-01-25 12:33:00 +01:00
parent d1829669ec
commit b52747247b
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
4 changed files with 9 additions and 1 deletions

View file

@ -8,7 +8,8 @@ import eventcore.internal.consumablequeue : ConsumableQueue;
import std.socket : InternetAddress;
version (linux) {
extern (C) int eventfd(uint initval, int flags);
nothrow @nogc extern (C) int eventfd(uint initval, int flags);
import core.sys.posix.unistd : close, read, write;
enum EFD_NONBLOCK = 0x800;
}