Merge pull request #104 from rracariu/patch-1
[PosixEventDriverEvents] Use Linux definitions from druntime
This commit is contained in:
commit
5f703cf039
|
@ -9,8 +9,7 @@ import eventcore.internal.utils : nogc_assert, mallocT, freeT;
|
|||
|
||||
version (linux) {
|
||||
nothrow @nogc extern (C) int eventfd(uint initval, int flags);
|
||||
enum EFD_NONBLOCK = 0x800;
|
||||
enum EFD_CLOEXEC = 0x80000;
|
||||
import core.sys.linux.sys.eventfd : EFD_NONBLOCK, EFD_CLOEXEC;
|
||||
}
|
||||
version (Posix) {
|
||||
import core.sys.posix.unistd : close, read, write;
|
||||
|
|
Loading…
Reference in a new issue