Merge pull request #104 from rracariu/patch-1

[PosixEventDriverEvents] Use Linux definitions from druntime
This commit is contained in:
Sönke Ludwig 2019-02-23 14:04:37 +01:00 committed by GitHub
commit 5f703cf039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,7 @@ import eventcore.internal.utils : nogc_assert, mallocT, freeT;
version (linux) { version (linux) {
nothrow @nogc extern (C) int eventfd(uint initval, int flags); nothrow @nogc extern (C) int eventfd(uint initval, int flags);
enum EFD_NONBLOCK = 0x800; import core.sys.linux.sys.eventfd : EFD_NONBLOCK, EFD_CLOEXEC;
enum EFD_CLOEXEC = 0x80000;
} }
version (Posix) { version (Posix) {
import core.sys.posix.unistd : close, read, write; import core.sys.posix.unistd : close, read, write;