From 77e64e4c37654aac081f2a7f680b6aa89c87fecb Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Tue, 8 Nov 2016 03:12:12 +0100 Subject: [PATCH] Use core.stdc.errno instead of dfuse.fuse.errno --- source/filesystem.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/filesystem.d b/source/filesystem.d index f5f9a6e..e9c114f 100644 --- a/source/filesystem.d +++ b/source/filesystem.d @@ -11,6 +11,7 @@ import std.stdio; import core.sys.posix.unistd; import core.stdc.string; +import core.stdc.errno; import dfuse.fuse; @@ -81,7 +82,7 @@ class FileSystem : Operations } else { - throw new FuseException(errno.ENOENT); + throw new FuseException(ENOENT); } } @@ -149,7 +150,7 @@ class FileSystem : Operations auto realPath = findFile(path.baseName); if(realPath is null) { - throw new FuseException(errno.ENOENT); + throw new FuseException(ENOENT); } strncpy(cast(char*)buf, cast(char*)realPath.toStringz, realPath.length);