David wrote:
> i am trying to compile the following with gcc on a RH 9.0 box:
>
> #include <sys/types.h>
> #include <sys/resource.h>
> #include <sys/time.h>
> #include <unistd.h>
> #include <stdio.h>
>
> [ . . . ]
>
> but it came back with the error that says 'struct rusage r_usage' is
> undeclared (it also complain about 'struct rlimit').
David,
Since your problem isn't really C-language-related, you'll have better
luck asking this on a newsgroup that deals with Linux. See the welcome
message for this group:
http://www.angelfire.com/ms3/bchambl...me_to_clc.html
For what it's worth, I compiled your code without problems on my FreeBSD
machine and on some Linux machine (I don't know if it was Red Hat).
Regards,
Russell Hanneken