diff options
author | Tim Northover <tnorthover@apple.com> | 2018-07-18 13:42:18 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2018-07-18 13:42:18 +0000 |
commit | 43d64b0b36c4bdc568c3a488df48a3a431da7a5c (patch) | |
tree | 4098feed07d0f1b4b92ef4e5e04b881b203c6e88 /llvm/lib/Support/Unix | |
parent | 30f58871318ad2fd20f6a1e320dcf070d595ae0f (diff) | |
download | bcm5719-llvm-43d64b0b36c4bdc568c3a488df48a3a431da7a5c.tar.gz bcm5719-llvm-43d64b0b36c4bdc568c3a488df48a3a431da7a5c.zip |
[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.
llvm-svn: 337389
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index b8fea5bda4f..7ad57d892ff 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/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); |