From 844a69f35ef8f1a19d3a4397d54a9a3f44a9beda Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 9 Mar 2017 13:43:31 +0000 Subject: [PATCH] fix build on Cygwin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297378 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Path.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 568b1b4c153..43549c0f564 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -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 -- 2.50.1