From 9d3077bd031bd79ecfabe9ac2e746195c9228ad3 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Tue, 5 Jul 2016 16:33:51 +0200 Subject: [PATCH] NetBSD uses statvfs for the functionality of statfs on Linux --- libs/pbd/mountpoint.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/pbd/mountpoint.cc b/libs/pbd/mountpoint.cc index 82aaadb9eb..89675c985e 100644 --- a/libs/pbd/mountpoint.cc +++ b/libs/pbd/mountpoint.cc @@ -116,7 +116,11 @@ mountpoint (string path) string mountpoint (string path) { +#if defined(__NetBSD__) + struct statvfs *mntbufp = 0; +#else struct statfs *mntbufp = 0; +#endif int count; unsigned int maxmatch = 0; unsigned int matchlen;