From 55893b51da24e9f0af0cd3e685e03414f750b3c1 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Mon, 22 Jul 2002 23:54:28 +0000 Subject: [PATCH] Windows compilation fix. svn path=/trunk/boinc/; revision=237 --- api/api.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.C b/api/api.C index ef24750be9..0839cc712b 100644 --- a/api/api.C +++ b/api/api.C @@ -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);