mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Fix build on NetBSD
This missed a change to "dir_remoteness_t" from bool
Fixes #8788
(cherry picked from commit 695e20c47f
)
This commit is contained in:
parent
8c13f5894b
commit
0314cb662f
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ static dir_remoteness_t path_remoteness(const wcstring &path) {
|
|||
// In practice the only system to use this path is NetBSD.
|
||||
struct statvfs buf {};
|
||||
if (statvfs(narrow.c_str(), &buf) < 0) return dir_remoteness_t::unknown;
|
||||
return (buf.f_flag & ST_LOCAL) ? false : true;
|
||||
return (buf.f_flag & ST_LOCAL) ? dir_remoteness_t::local : dir_remoteness_t::remote;
|
||||
#elif defined(MNT_LOCAL)
|
||||
struct statfs buf {};
|
||||
if (statfs(narrow.c_str(), &buf) < 0) return dir_remoteness_t::unknown;
|
||||
|
|
Loading…
Reference in a new issue