summaryrefslogtreecommitdiff
path: root/src/mountinfo/mountinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mountinfo/mountinfo.c')
-rw-r--r--src/mountinfo/mountinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mountinfo/mountinfo.c b/src/mountinfo/mountinfo.c
index 9dc78e05..c0187b53 100644
--- a/src/mountinfo/mountinfo.c
+++ b/src/mountinfo/mountinfo.c
@@ -20,6 +20,11 @@
# include <sys/mount.h>
# define F_FLAGS f_flags
+#elif defined(__NetBSD__)
+# include <sys/mount.h>
+
+# define statfs statvfs
+# define F_FLAGS f_flag
#elif defined(BSD) && !defined(__GNU__)
# include <sys/statvfs.h>