diff options
author | Kamil Rytarowski <n54@gmx.com> | 2016-07-05 16:33:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-04 22:18:23 +0200 |
commit | 9d3077bd031bd79ecfabe9ac2e746195c9228ad3 (patch) | |
tree | 76e39bcae9227ddb7d96cd48e759385dd6c5bc17 | |
parent | 1ac7dad84ec3c4e539d9cb860da0e463fd6b838f (diff) |
NetBSD uses statvfs for the functionality of statfs on Linux
-rw-r--r-- | libs/pbd/mountpoint.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |