diff options
| author | SetiQyu <leo.lundberg99@gmail.com> | 2025-07-22 22:17:46 +0200 |
|---|---|---|
| committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2025-09-07 04:31:22 +0200 |
| commit | aaed509cd4e63e2537f1d66c4f5a28a33f964153 (patch) | |
| tree | 0ae7a2564aea488f8450d6de40aac3e520cf6ae4 | |
| parent | cc2f8323bfb09c579a36a514f51dbce864efe6b7 (diff) | |
librc, mountinfo: fix build headers for netbsdorigin/netbsd-fix
| -rw-r--r-- | src/librc/librc.h | 4 | ||||
| -rw-r--r-- | src/mountinfo/mountinfo.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/librc/librc.h b/src/librc/librc.h index d49dd849..c3c0d850 100644 --- a/src/librc/librc.h +++ b/src/librc/librc.h @@ -44,8 +44,10 @@ #include <unistd.h> #if defined(BSD) && !defined(__GNU__) + #if !defined(__NetBSD__) + #include <sys/user.h> + #endif #include <sys/param.h> -#include <sys/user.h> #include <sys/sysctl.h> #include <kvm.h> #else 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> |
