summaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-31 05:53:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-31 05:53:27 +0000
commit92ced2f16a43518411c8747510a311881650adea (patch)
tree71940d5a417fd9fe43f74e86237c44e57b67906f /lib/System/Unix
parentba46ca3a3b3c9f4b26c01a05165e0811a85b1b2f (diff)
downloadllvm-92ced2f16a43518411c8747510a311881650adea.tar.gz
llvm-92ced2f16a43518411c8747510a311881650adea.tar.bz2
llvm-92ced2f16a43518411c8747510a311881650adea.tar.xz
Fix a compilation error for the case where mallinfo() is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Process.cpp2
-rw-r--r--lib/System/Unix/Process.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Process.cpp b/lib/System/Unix/Process.cpp
index 1953390517..c1448de8d4 100644
--- a/lib/System/Unix/Process.cpp
+++ b/lib/System/Unix/Process.cpp
@@ -57,7 +57,7 @@ Process::GetMallocUsage()
#elif defined(HAVE_SBRK)
// Note this is only an approximation and more closely resembles
// the value returned by mallinfo in the arena field.
- char * eom = sbrk(0);
+ char * eom = (char*) sbrk(0);
if (eom != ((char*)-1) && som != ((char*)-1))
return eom - som;
else
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index 1953390517..c1448de8d4 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -57,7 +57,7 @@ Process::GetMallocUsage()
#elif defined(HAVE_SBRK)
// Note this is only an approximation and more closely resembles
// the value returned by mallinfo in the arena field.
- char * eom = sbrk(0);
+ char * eom = (char*) sbrk(0);
if (eom != ((char*)-1) && som != ((char*)-1))
return eom - som;
else