diff --git a/source/vibe/core/log.d b/source/vibe/core/log.d index 2d8df7b..8aa8661 100644 --- a/source/vibe/core/log.d +++ b/source/vibe/core/log.d @@ -733,10 +733,10 @@ private string hostName() string hostName; version (Posix) { - import core.sys.posix.sys.utsname; + import core.sys.posix.sys.utsname : uname, utsname; utsname name; if (uname(&name)) return hostName; - hostName = name.nodename.to!string(); + hostName = name.nodename.ptr.to!string; import std.socket; auto ih = new InternetHost;