more on devstat (missing include)
- From: Pietro Cerutti <gahr@xxxxxxx>
- Date: Thu, 31 Jan 2008 00:09:21 +0100
Hi hackers,
I think that i) sys/devicestat.h should include sys/resource.h or ii)
the man page of devstat(9) should mention that the user himself is
supposed to include sys/resource.h.
Without:
cat devstat.c#include <devstat.h>
int main(void)
{
devstat_getnumdevs(NULL);
return (0);
}
gcc -ldevstat -o devstat devstat.cIn file included from devstat.c:1:
/usr/include/devstat.h:131: error: 'CPUSTATES' undeclared here (not in a
function)
Exit 1
I can provide a patch if someone could tell me which one of the proposed
solutions above is the preferred one.
Thanks,
--
Pietro Cerutti
PGP Public Key:
http://gahr.ch/pgp
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: more on devstat (missing include)
- From: John Baldwin
- Re: more on devstat (missing include)
- Prev by Date: Re: 'periodic daily' memory usage
- Next by Date: [OT] Q: what would you choose for a VCS today
- Previous by thread: struct devstat's bytes[] meaning
- Next by thread: Re: more on devstat (missing include)
- Index(es):
Relevant Pages
|
|