diff options
| -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> |
