summaryrefslogtreecommitdiff
path: root/src/mountinfo/mountinfo.c
diff options
context:
space:
mode:
authorSetiQyu <leo.lundberg99@gmail.com>2025-07-22 22:17:46 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2025-09-07 04:31:22 +0200
commitaaed509cd4e63e2537f1d66c4f5a28a33f964153 (patch)
tree0ae7a2564aea488f8450d6de40aac3e520cf6ae4 /src/mountinfo/mountinfo.c
parentcc2f8323bfb09c579a36a514f51dbce864efe6b7 (diff)
librc, mountinfo: fix build headers for netbsdorigin/netbsd-fix
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>