From: wessels <> Date: Thu, 28 Mar 1996 09:34:04 +0000 (+0000) Subject: rely on configure to properly set HAVE_MALLINFO and HAVE_MALLOPT X-Git-Tag: SQUID_3_0_PRE1~6360 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50bc2565b7dca3b5c80bfe5ff74f430fdcf9725c;p=thirdparty%2Fsquid.git rely on configure to properly set HAVE_MALLINFO and HAVE_MALLOPT --- diff --git a/src/main.cc b/src/main.cc index fa48db1cf2..643e2e2e1e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,4 +1,4 @@ -/* $Id: main.cc,v 1.13 1996/03/27 20:21:43 wessels Exp $ */ +/* $Id: main.cc,v 1.14 1996/03/28 02:34:04 wessels Exp $ */ #include "squid.h" @@ -68,7 +68,7 @@ int main(argc, argv) setMaxFD(); -#if USE_MALLOPT +#if HAVE_MALLOPT /* set malloc option */ /* use small block algorithm for faster allocation */ /* grain of small block */ diff --git a/src/stat.cc b/src/stat.cc index df5ca42474..0c397a4206 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,4 +1,4 @@ -/* $Id: stat.cc,v 1.8 1996/03/27 18:15:53 wessels Exp $ */ +/* $Id: stat.cc,v 1.9 1996/03/28 02:34:04 wessels Exp $ */ #include "squid.h" @@ -395,7 +395,7 @@ void info_get(obj, sentry) struct rusage rusage; #endif -#if USE_MALLINFO +#if HAVE_MALLINFO struct mallinfo mp; #endif @@ -464,7 +464,7 @@ void info_get(obj, sentry) #endif -#if USE_MALLINFO +#if HAVE_MALLINFO mp = mallinfo(); sprintf(line, "{Memory usage for cached via mallinfo():}\n"); @@ -520,7 +520,7 @@ void info_get(obj, sentry) #endif /* LNG_MALLINFO */ -#endif /* USE_MALLINFO */ +#endif /* HAVE_MALLINFO */ sprintf(line, "{File descriptor usage for cached:}\n"); storeAppend(sentry, line, strlen(line)); diff --git a/src/tools.cc b/src/tools.cc index 8b5266c4c9..42b2898ebc 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,5 +1,5 @@ -/* $Id: tools.cc,v 1.13 1996/03/27 20:21:11 wessels Exp $ */ +/* $Id: tools.cc,v 1.14 1996/03/28 02:34:05 wessels Exp $ */ #include "squid.h" @@ -141,7 +141,7 @@ void fatal_dump(message) void dumpMallocStats(f) FILE *f; { -#if USE_MALLINFO +#if HAVE_MALLINFO struct mallinfo mp; if (!do_mallinfo) @@ -176,7 +176,7 @@ void dumpMallocStats(f) #if PRINT_MMAP mallocmap(); #endif /* PRINT_MMAP */ -#endif /* USE_MALLINFO */ +#endif /* HAVE_MALLINFO */ } int PrintRusage(f, lf) @@ -202,7 +202,7 @@ int PrintRusage(f, lf) int getHeapSize() { -#if USE_MALLINFO +#if HAVE_MALLINFO struct mallinfo mp; mp = mallinfo();