mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
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:
parent
e4b6007f33
commit
3e03625113
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue