aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/cgroup.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-18 13:43:58 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-21 09:38:21 +0000
commitd485c77f203fb0f4cdc08dea5ff81631b51d8809 (patch)
treeedaccf839fb300b07f445a8d463544e6f472db91 /lib/libufs/cgroup.c
parent750ea20d3fb143a95ccf3ff84cfbe86cce9b9cac (diff)
downloadsrc-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 'lib/libufs/cgroup.c')
-rw-r--r--lib/libufs/cgroup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libufs/cgroup.c b/lib/libufs/cgroup.c
index 1c3e271c4295..90b28eadad2c 100644
--- a/lib/libufs/cgroup.c
+++ b/lib/libufs/cgroup.c
@@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$");
#include <sys/disklabel.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>