Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2022 23:09:12 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f4036d3241cf - stable/12 - libprocstat: forward declare struct kinfo_proc
Message-ID:  <202208312309.27VN9CA6054336@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=f4036d3241cf4e1f78cff77aaaf05e962ebaf46e

commit f4036d3241cf4e1f78cff77aaaf05e962ebaf46e
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-08-26 22:20:32 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-08-31 22:55:52 +0000

    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)
---
 lib/libprocstat/libprocstat.h | 1 +
 1 file changed, 1 insertion(+)

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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208312309.27VN9CA6054336>