From e55e23368aa058ab4d673fe1d220241de8ab6607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88nke=20Ludwig?= Date: Mon, 23 Jan 2017 11:52:09 +0100 Subject: [PATCH] Fix compile error on macOS. --- source/eventcore/drivers/posix.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/eventcore/drivers/posix.d b/source/eventcore/drivers/posix.d index cfdd09b..c56ff88 100644 --- a/source/eventcore/drivers/posix.d +++ b/source/eventcore/drivers/posix.d @@ -24,6 +24,7 @@ version (Posix) { import core.sys.posix.unistd : close, read, write; import core.stdc.errno : errno, EAGAIN, EINPROGRESS; import core.sys.posix.fcntl; + alias sock_t = int; } version (Windows) { import core.sys.windows.windows; @@ -41,7 +42,6 @@ version (Windows) { version (linux) { extern (C) int eventfd(uint initval, int flags); enum EFD_NONBLOCK = 0x800; - alias sock_t = int; }