git: a28f83353243 - main - libprocstat: forward declare struct kinfo_proc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Aug 2022 22:20:41 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=a28f83353243e2298b5f89c0dd6705dfcbda77ea
commit a28f83353243e2298b5f89c0dd6705dfcbda77ea
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-08-26 22:20:32 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-08-26 22:20:32 +0000
libprocstat: forward declare struct kinfo_proc
This allows libprocstat.h to be included without sys/user.h as
documented in the manpage.
---
lib/libprocstat/libprocstat.h | 1 +
1 file changed, 1 insertion(+)
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;