fix build on Cygwin

llvm-svn: 297378
This commit is contained in:
Nuno Lopes 2017-03-09 13:43:31 +00:00
parent ab0d1e4a2f
commit 7a1bbd4d73
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ static bool is_local_impl(struct STATVFS &Vfs) {
default: default:
return true; return true;
} }
#elif defined(__CYGWIN__)
// Cygwin doesn't expose this information; would need to use Win32 API.
return false;
#else #else
return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL); return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL);
#endif #endif