[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:
Radu Racariu 2019-02-12 19:47:37 +02:00 committed by GitHub
parent 36f43690c6
commit 6286c7980d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,9 +8,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 : eventfd, EFD_NONBLOCK, EFD_CLOEXEC;
}
version (Posix) {
import core.sys.posix.unistd : close, read, write;