projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1e666c
)
Correct use of HAVE_MALLINFO
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 30 Mar 2011 14:23:04 +0000
(16:23 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 30 Mar 2011 14:23:04 +0000
(16:23 +0200)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
5b84951
..
eb799f0
100644
(file)
--- a/
src/http_command.c
+++ b/
src/http_command.c
@@
-41,9
+41,11
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "settings.h"
#include "client.h"
-#ifdef __LINUX__
+#ifdef HAVE_MALLINFO
#include <malloc.h>
+
void print_meminfo(WRBUF wrbuf) {
+
struct mallinfo minfo;
minfo = mallinfo();
wrbuf_printf(wrbuf, " <memory>\n"