diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2022-08-26 22:20:32 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2022-08-31 22:55:52 +0000 |
| commit | f4036d3241cf4e1f78cff77aaaf05e962ebaf46e (patch) | |
| tree | 10d5ce11d52371e72c2e2afd2b8a92f43ef69c2d | |
| parent | 3e39cbb10e0d4cf9db17ac38a0cca39aa3c5e403 (diff) | |
| download | src-f4036d3241cf4e1f78cff77aaaf05e962ebaf46e.tar.gz src-f4036d3241cf4e1f78cff77aaaf05e962ebaf46e.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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.h b/lib/libprocstat/libprocstat.h index 6e03ef515444..d1d8b392dd94 100644 --- a/lib/libprocstat/libprocstat.h +++ b/lib/libprocstat/libprocstat.h @@ -104,6 +104,7 @@ #define PS_FST_FFLAG_HASLOCK 0x4000 struct kinfo_kstack; +struct kinfo_proc; struct kinfo_vmentry; struct procstat; struct ptrace_lwpinfo; |
