From: Tim Northover Date: Wed, 18 Jul 2018 13:42:18 +0000 (+0000) Subject: [Support] Build fix for Haiku when checking for a local filesystem X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32e74a6f99f7187434eeb5ec49d0f822bed6acdc;p=llvm [Support] Build fix for Haiku when checking for a local filesystem Haiku does not expose information about local versus remote mounts, so just return false, like Cygwin. Patch by Niels Sascha Reedijk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337389 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index b8fea5bda4f..7ad57d892ff 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -371,6 +371,9 @@ static bool is_local_impl(struct STATVFS &Vfs) { #elif defined(__Fuchsia__) // Fuchsia doesn't yet support remote filesystem mounts. return true; +#elif defined(__HAIKU__) + // Haiku doesn't expose this information. + return false; #elif defined(__sun) // statvfs::f_basetype contains a null-terminated FSType name of the mounted target StringRef fstype(Vfs.f_basetype);