NetBSD uses statvfs for the functionality of statfs on Linux
authorKamil Rytarowski <n54@gmx.com>
Tue, 5 Jul 2016 14:33:51 +0000 (16:33 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 4 Oct 2016 20:18:23 +0000 (22:18 +0200)
libs/pbd/mountpoint.cc

index 82aaadb9eb26f2a6a27ad0d58cc69829d881358b..89675c985e1260a4bb8ac131781b1f6fe3118a32 100644 (file)
@@ -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;