mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
The devstat(3) manpage claims that only <devstat.h> is needed as a
prerequisite for using this interface. However, the 'statinfo' struct actually references CPUSTATES from <sys/resource.h>, so in fact it requires <sys/resource.h> to compile. Use a nested include of <sys/resource.h> to make the code match the docs. Reported by: Pietro Cerutti gahr | gahr.ch
This commit is contained in:
parent
4a994e8a93
commit
702bfe6507
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175861
|
@ -32,6 +32,7 @@
|
|||
#define _DEVSTAT_H
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/devicestat.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
#include <kvm.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue