summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Process.inc
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-12 04:57:20 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-12 04:57:20 +0000
commitdf40664a63a91a1ab4b40c7f2d356cf255071d56 (patch)
treef7451e40d2fd2896f2f742d8a3f5dc6e375da6d3 /lib/System/Unix/Process.inc
parentf5e16139f28d650536024280a16dcf73513baf46 (diff)
downloadllvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.tar.gz
llvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.tar.bz2
llvm-df40664a63a91a1ab4b40c7f2d356cf255071d56.tar.xz
Haiku porting patches, Credit to Paul Davey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Process.inc')
-rw-r--r--lib/System/Unix/Process.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index d7155852bf..94e4c1bde2 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;