From 7a1bbd4d7339c76b46d0f4fba4a80adaf713bfac 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 llvm-svn: 297378 --- llvm/lib/Support/Unix/Path.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 568b1b4c1533..43549c0f5642 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/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