[llvm] r337389 - [Support] Build fix for Haiku when checking for a local filesystem

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 06:42:18 PDT 2018


Author: tnorthover
Date: Wed Jul 18 06:42:18 2018
New Revision: 337389

URL: http://llvm.org/viewvc/llvm-project?rev=337389&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Support/Unix/Path.inc

Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=337389&r1=337388&r2=337389&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Wed Jul 18 06:42:18 2018
@@ -371,6 +371,9 @@ static bool is_local_impl(struct STATVFS
 #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);




More information about the llvm-commits mailing list