aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2022-08-26 22:20:32 +0000
committerBrooks Davis <brooks@FreeBSD.org>2022-08-31 22:38:15 +0000
commit569bfb42951aaa65b9884a0a7c2f04cd91b1862d (patch)
tree6ae38a855b8b8d9d8d78e265c478f4efeebc3e37
parent51b886a812a70841bf110d599e3e2f21db61340a (diff)
downloadsrc-569bfb42951aaa65b9884a0a7c2f04cd91b1862d.tar.gz
src-569bfb42951aaa65b9884a0a7c2f04cd91b1862d.zip
libprocstat: forward declare struct kinfo_proc
This allows libprocstat.h to be included without sys/user.h as documented in the manpage. PR: 266146 (cherry picked from commit a28f83353243e2298b5f89c0dd6705dfcbda77ea)
-rw-r--r--lib/libprocstat/libprocstat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h
index 8736870d163e..2432adb1aec3 100644
--- a/lib/libprocstat/libprocstat.h
+++ b/lib/libprocstat/libprocstat.h
@@ -105,6 +105,7 @@
#define PS_FST_FFLAG_HASLOCK 0x4000
struct kinfo_kstack;
+struct kinfo_proc;
struct kinfo_vmentry;
struct procstat;
struct ptrace_lwpinfo;