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 | 4c24c914c9726197266242a89c899a43c852bce2 (patch) | |
tree | f7451e40d2fd2896f2f742d8a3f5dc6e375da6d3 /lib | |
parent | 8935700747e6774fc1732c2608c80e533690a0f8 (diff) | |
download | external_llvm-4c24c914c9726197266242a89c899a43c852bce2.zip external_llvm-4c24c914c9726197266242a89c899a43c852bce2.tar.gz external_llvm-4c24c914c9726197266242a89c899a43c852bce2.tar.bz2 |
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')
-rw-r--r-- | lib/System/Unix/Process.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |