Index: lib/Support/Unix/Path.inc =================================================================== --- lib/Support/Unix/Path.inc +++ lib/Support/Unix/Path.inc @@ -68,7 +68,7 @@ #include #if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && \ - !defined(__linux__) + !defined(__linux__) && !defined(__GNU__) #include #define STATVFS statvfs #define FSTATVFS fstatvfs @@ -89,6 +89,9 @@ #endif #endif #include +#elif defined(__GNU__) +#include +#include #else #include #endif @@ -381,6 +384,14 @@ #elif defined(__CYGWIN__) // Cygwin doesn't expose this information; would need to use Win32 API. return false; +#elif defined(__GNU__) + switch (Vfs.f_type) { + case FSTYPE_NFS: + case FSTYPE_HTTP: + return false; + default: + return true; + } #else return !!(STATVFS_F_FLAG(Vfs) & MNT_LOCAL); #endif