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:
John Baldwin 2008-01-31 16:55:12 +00:00
parent 4a994e8a93
commit 702bfe6507
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175861

View File

@ -32,6 +32,7 @@
#define _DEVSTAT_H
#include <sys/cdefs.h>
#include <sys/devicestat.h>
#include <sys/resource.h>
#include <kvm.h>