Summary: | <sys/linker.h> needs <sys/param.h> and <sys/types.h> but does not include them | ||
---|---|---|---|
Product: | Base System | Reporter: | Matt Jacobson <mhjacobson> |
Component: | kern | Assignee: | Mark Johnston <markj> |
Status: | In Progress --- | ||
Severity: | Affects Many People | CC: | markj, mhjacobson |
Priority: | --- | ||
Version: | 13.3-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Matt Jacobson
2024-07-24 19:38:25 UTC
This is reasonable, but the dependency is at least documented in the kldstat(2) and related man pages. Including just sys/param.h is sufficient. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f44029e322446469f116bbd26d51ba857083bacb commit f44029e322446469f116bbd26d51ba857083bacb Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-10-26 14:05:56 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-10-26 14:05:56 +0000 linker: Make linker.h more self-contained struct kld_file_stat embeds a reference to MAXPATHLEN, defined in param.h. PR: 280432 MFC after: 2 weeks lib/libsys/kldfind.2 | 1 - lib/libsys/kldfirstmod.2 | 1 - lib/libsys/kldload.2 | 1 - lib/libsys/kldnext.2 | 1 - lib/libsys/kldstat.2 | 1 - lib/libsys/kldsym.2 | 1 - lib/libsys/kldunload.2 | 1 - sys/sys/linker.h | 2 ++ 8 files changed, 2 insertions(+), 7 deletions(-) |