| Summary: | sys/user.h needs sys/param.h, but doesn't include it. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | joelh <joelh> |
| Component: | kern | Assignee: | Bruce Evans <bde> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->bde Looks like something Bruce might be interested in investigating. State Changed From-To: open->feedback Hello, is this still relevant? State Changed From-To: feedback->closed feedback timeout |
The file <sys/user.h> (needed for the KERN_PROC sysctl oid) uses variables defined by <sys/param.h>, but neither is documented as necessary, and the latter is not automatically included by the former. Fix: include <sys/param.h> in <sys/user.h>. It may be good to either document in sysctl(3) that <sys/user.h> is needed to interpret the KERN_PROC oid, or include it in <sys/sysctl.h>. How-To-Repeat: #include <sys/types.h> #include <sys/sysctl.h> #include <sys/user.h> int main() { }