]> granicus.if.org Git - llvm/commitdiff
fix build on Cygwin
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 9 Mar 2017 13:43:31 +0000 (13:43 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 9 Mar 2017 13:43:31 +0000 (13:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297378 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Path.inc

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