From 703cc8e8bfbc8415af84feff676fb74b77fa8b48 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Mon, 23 Jun 2003 03:31:24 +0000 Subject: [PATCH] use sbrk() for high_memory_warning check if mallinfo() and mstats() are not available. --- src/stat.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stat.cc b/src/stat.cc index 31061bf3ad..03631a7feb 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.375 2003/06/20 01:01:01 robertc Exp $ + * $Id: stat.cc,v 1.376 2003/06/22 21:31:24 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -1089,6 +1089,9 @@ statAvgTick(void *notused) struct mallinfo mp = mallinfo(); i = mp.arena; +#elif HAVE_SBRK + + i = (size_t) ((char *) sbrk(0) - (char *) sbrk_start); #endif if (Config.warnings.high_memory < i) -- 2.47.3