[PosixEventDriverEvents] Use Linux definitions from druntime
This doesn't duplicate the definitions form `core.sys.linux.sys.eventfd` and will pickup any platform specifics for better portability. Fixes https://github.com/vibe-d/eventcore/issues/102
This commit is contained in:
parent
36f43690c6
commit
6286c7980d
|
@ -8,9 +8,7 @@ import eventcore.internal.utils : nogc_assert, mallocT, freeT;
|
||||||
|
|
||||||
|
|
||||||
version (linux) {
|
version (linux) {
|
||||||
nothrow @nogc extern (C) int eventfd(uint initval, int flags);
|
import core.sys.linux.sys.eventfd : eventfd, EFD_NONBLOCK, EFD_CLOEXEC;
|
||||||
enum EFD_NONBLOCK = 0x800;
|
|
||||||
enum EFD_CLOEXEC = 0x80000;
|
|
||||||
}
|
}
|
||||||
version (Posix) {
|
version (Posix) {
|
||||||
import core.sys.posix.unistd : close, read, write;
|
import core.sys.posix.unistd : close, read, write;
|
||||||
|
|
Loading…
Reference in a new issue