diff options
author | jhb <jhb@FreeBSD.org> | 2008-01-31 16:55:12 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-01-31 16:55:12 +0000 |
commit | d8dba28f83bd01c690a374d416e494a87c0e5f88 (patch) | |
tree | a745d482ce4f942c9a03757b194daeb93252c8a1 | |
parent | 7741f44ec27c3e834b9a0be92c3b6578a478fc66 (diff) | |
download | FreeBSD-src-d8dba28f83bd01c690a374d416e494a87c0e5f88.zip FreeBSD-src-d8dba28f83bd01c690a374d416e494a87c0e5f88.tar.gz |
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
-rw-r--r-- | lib/libdevstat/devstat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.h b/lib/libdevstat/devstat.h index 61b8ccb..7717cb1 100644 --- a/lib/libdevstat/devstat.h +++ b/lib/libdevstat/devstat.h @@ -32,6 +32,7 @@ #define _DEVSTAT_H #include <sys/cdefs.h> #include <sys/devicestat.h> +#include <sys/resource.h> #include <kvm.h> |