From 72c9be2d5bd3f58853e75be73ea4904e8bfe89cc Mon Sep 17 00:00:00 2001 From: Sheldon Shen Date: Sat, 4 Jun 2016 21:24:19 +0800 Subject: [PATCH] close disambiguation The implicit close(masterfd) here actually calls dlangide.ui.terminal.TerminalDevice.close, which is not callable using argument types (int) and somehow leads to a compile failure. --- src/dlangide/ui/terminal.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangide/ui/terminal.d b/src/dlangide/ui/terminal.d index 738e159..14263e0 100644 --- a/src/dlangide/ui/terminal.d +++ b/src/dlangide/ui/terminal.d @@ -795,8 +795,8 @@ class TerminalDevice : Thread { } } else { if (masterfd && masterfd != -1) { - import core.sys.posix.unistd; - close(masterfd); + import core.sys.posix.unistd: close_=close; + close_(masterfd); masterfd = 0; } }