Don't try to use fstatfs on netbsd

I can find a man page for it, but it doesn't seem to work.
This commit is contained in:
Fabian Homborg 2018-12-11 21:11:02 +01:00
parent e4b6007f33
commit 3e03625113

View file

@ -311,7 +311,7 @@ int fd_check_is_remote(int fd) {
// Other FSes are assumed local.
return 0;
}
#elif defined(MNT_LOCAL)
#elif defined(MNT_LOCAL) && !defined(__NetBSD__)
struct statfs buf {};
if (fstatfs(fd, &buf) < 0) return -1;
return (buf.f_flags & MNT_LOCAL) ? 0 : 1;