Windows compilation fix.

svn path=/trunk/boinc/; revision=237
This commit is contained in:
Eric Heien 2002-07-22 23:54:28 +00:00
parent 77f5dd01d5
commit 55893b51da
1 changed files with 1 additions and 1 deletions

View File

@ -316,8 +316,8 @@ int boinc_resolve_link(char *file_name, char *resolved_name)
bool _checkpoint = false;
double get_cpu_time() {
int retval, pid = getpid();
#ifdef HAVE_SYS_RESOURCE_H
int retval, pid = getpid();
struct rusage ru;
retval = getrusage(RUSAGE_SELF, &ru);
if(retval) fprintf(stderr, "error: could not get cpu time for %d\n", pid);