From 4c24c914c9726197266242a89c899a43c852bce2 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 12 Oct 2009 04:57:20 +0000 Subject: Haiku porting patches, Credit to Paul Davey. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83823 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Process.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System/Unix') diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc index d715585..94e4c1b 100644 --- a/lib/System/Unix/Process.inc +++ b/lib/System/Unix/Process.inc @@ -91,7 +91,7 @@ Process::GetTotalMemoryUsage() malloc_statistics_t Stats; malloc_zone_statistics(malloc_default_zone(), &Stats); return Stats.size_allocated; // darwin -#elif defined(HAVE_GETRUSAGE) +#elif defined(HAVE_GETRUSAGE) && !defined(__HAIKU__) struct rusage usage; ::getrusage(RUSAGE_SELF, &usage); return usage.ru_maxrss; -- cgit v1.1