From 07b09e86927b1495f39565aefe097c1c5e6dcf2c Mon Sep 17 00:00:00 2001 From: Radu Racariu Date: Tue, 12 Feb 2019 19:55:32 +0200 Subject: [PATCH] fix @safe --- source/eventcore/drivers/posix/events.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/eventcore/drivers/posix/events.d b/source/eventcore/drivers/posix/events.d index d93c352..ce2cf7b 100644 --- a/source/eventcore/drivers/posix/events.d +++ b/source/eventcore/drivers/posix/events.d @@ -8,7 +8,8 @@ import eventcore.internal.utils : nogc_assert, mallocT, freeT; version (linux) { - import core.sys.linux.sys.eventfd : eventfd, EFD_NONBLOCK, EFD_CLOEXEC; + nothrow @nogc extern (C) int eventfd(uint initval, int flags); + import core.sys.linux.sys.eventfd : EFD_NONBLOCK, EFD_CLOEXEC; } version (Posix) { import core.sys.posix.unistd : close, read, write;