summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-01-31 16:55:12 +0000
committerjhb <jhb@FreeBSD.org>2008-01-31 16:55:12 +0000
commitd8dba28f83bd01c690a374d416e494a87c0e5f88 (patch)
treea745d482ce4f942c9a03757b194daeb93252c8a1 /lib/libdevstat
parent7741f44ec27c3e834b9a0be92c3b6578a478fc66 (diff)
downloadFreeBSD-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
Diffstat (limited to 'lib/libdevstat')
-rw-r--r--lib/libdevstat/devstat.h1
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>
OpenPOWER on IntegriCloud