From 3e03625113e7995ab9d0223d52363a292e20dae8 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 11 Dec 2018 21:11:02 +0100 Subject: [PATCH] Don't try to use fstatfs on netbsd I can find a man page for it, but it doesn't seem to work. --- src/wutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wutil.cpp b/src/wutil.cpp index f58eb529a..ceb3620c5 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -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;