diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-18 13:43:58 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-21 09:38:21 +0000 |
commit | d485c77f203fb0f4cdc08dea5ff81631b51d8809 (patch) | |
tree | edaccf839fb300b07f445a8d463544e6f472db91 /sbin/ffsinfo/ffsinfo.c | |
parent | 750ea20d3fb143a95ccf3ff84cfbe86cce9b9cac (diff) | |
download | src-d485c77f203fb0f4cdc08dea5ff81631b51d8809.tar.gz src-d485c77f203fb0f4cdc08dea5ff81631b51d8809.zip |
Remove #define _KERNEL hacks from libprocstat
Make sys/buf.h, sys/pipe.h, sys/fs/devfs/devfs*.h headers usable in
userspace, assuming that the consumer has an idea what it is for.
Unhide more material from sys/mount.h and sys/ufs/ufs/inode.h,
sys/ufs/ufs/ufsmount.h for consumption of userspace tools, with the
same caveat.
Remove unacceptable hack from usr.sbin/makefs which relied on sys/buf.h
being unusable in userspace, where it override struct buf with its own
definition. Instead, provide struct m_buf and struct m_vnode and adapt
code to use local variants.
Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D28679
Diffstat (limited to 'sbin/ffsinfo/ffsinfo.c')
-rw-r--r-- | sbin/ffsinfo/ffsinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c index 9bd3210986a9..33ec5f175cbd 100644 --- a/sbin/ffsinfo/ffsinfo.c +++ b/sbin/ffsinfo/ffsinfo.c @@ -59,6 +59,8 @@ static const char rcsid[] = #include <sys/mount.h> #include <sys/stat.h> +#include <ufs/ufs/extattr.h> +#include <ufs/ufs/quota.h> #include <ufs/ufs/ufsmount.h> #include <ufs/ufs/dinode.h> #include <ufs/ffs/fs.h> |