From f3755a52d2748e57f414c0d901fedd7ff895c9fc Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 22 May 2002 20:24:49 +0000 Subject: [PATCH] Added Mac OS X compile support. svn path=/trunk/boinc/; revision=50 --- client/hostinfo_unix.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/hostinfo_unix.C b/client/hostinfo_unix.C index b0a66cef5c..3a682d2678 100644 --- a/client/hostinfo_unix.C +++ b/client/hostinfo_unix.C @@ -162,16 +162,20 @@ void get_osinfo(HOST_INFO& host) { #endif int get_host_info(HOST_INFO& host) { +#ifndef mac struct statvfs foo; - +#endif + memset(&host, 0, sizeof(host)); - + get_local_domain_name(host.domain_name); get_local_ip_addr_str(host.ip_addr); - + +#ifndef mac statvfs(".", &foo); host.d_total = (double)foo.f_bsize * (double)foo.f_blocks; host.d_free = (double)foo.f_bsize * (double)foo.f_bavail; +#endif #ifdef solaris int i, n;