[PATCH] D49014: [Support] Build fix for Haiku when checking for a local filesystem

Niels Sascha Reedijk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 6 02:35:11 PDT 2018


nielx created this revision.
nielx added a reviewer: chandlerc.
Herald added a subscriber: llvm-commits.

Haiku does not expose information about local versus remote mounts, so just return false, like Cygwin.


Repository:
  rL LLVM

https://reviews.llvm.org/D49014

Files:
  lib/Support/Unix/Path.inc


Index: lib/Support/Unix/Path.inc
===================================================================
--- lib/Support/Unix/Path.inc
+++ lib/Support/Unix/Path.inc
@@ -371,6 +371,9 @@
 #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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49014.154362.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180706/3e55c862/attachment.bin>


More information about the llvm-commits mailing list