NetBSD uses statvfs for the functionality of statfs on Linux

This commit is contained in:
Kamil Rytarowski
2016-07-05 16:33:51 +02:00
committed by Robin Gareus
parent 1ac7dad84e
commit 9d3077bd03

View 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;