mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
[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
This commit is contained in:
parent
6c4c2eada8
commit
86f6d37bb3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user