X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=eb799f039779d69ad3213738aac3947afe7e379a;hb=refs%2Ftags%2Fv1.5.6;hp=9d464d61e72d46c57c29954280aa8471e8c86741;hpb=99d669382f8eb02f3ff0f100c848bb6382310339;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 9d464d6..eb799f0 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -41,10 +41,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "settings.h" #include "client.h" +#ifdef HAVE_MALLINFO #include void print_meminfo(WRBUF wrbuf) { -#ifdef __GNUC__ + struct mallinfo minfo; minfo = mallinfo(); wrbuf_printf(wrbuf, " \n" @@ -60,8 +61,10 @@ void print_meminfo(WRBUF wrbuf) { " \n", minfo.arena, minfo.uordblks, minfo.fordblks,minfo.ordblks, minfo.keepcost, minfo.hblks, minfo.hblkhd, minfo.arena + minfo.hblkhd, minfo.uordblks + minfo.hblkhd); -#endif } +#else +#define print_meminfo(x) +#endif // Update this when the protocol changes