diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-12 04:57:20 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-12 04:57:20 +0000 |
commit | 8227b0512f75846bd03393e7d189611fd800d2a1 (patch) | |
tree | 504e9e0b7247ab91c51b311e410c5a265be54f04 /llvm/lib/System/Unix/Process.inc | |
parent | 0840c823e4b431e2405ec2fa12f619d37ae0f0f7 (diff) | |
download | bcm5719-llvm-8227b0512f75846bd03393e7d189611fd800d2a1.tar.gz bcm5719-llvm-8227b0512f75846bd03393e7d189611fd800d2a1.zip |
Haiku porting patches, Credit to Paul Davey.
llvm-svn: 83823
Diffstat (limited to 'llvm/lib/System/Unix/Process.inc')
-rw-r--r-- | llvm/lib/System/Unix/Process.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Process.inc b/llvm/lib/System/Unix/Process.inc index d7155852bf2..94e4c1bde25 100644 --- a/llvm/lib/System/Unix/Process.inc +++ b/llvm/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; |