blob: d55933851f5a290606fa4a5fd11ed86f6bf93c68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ab,v 1.1 2006/12/02 05:06:33 minskim Exp $
--- lib/memory.c.orig 2006-03-30 05:47:38.000000000 -0800
+++ lib/memory.c
@@ -21,7 +21,10 @@
*/
#include <zebra.h>
+/* malloc.h is generally obsolete, however GNU Libc mallinfo wants it. */
+#if !defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO))
#include <malloc.h>
+#endif /* !HAVE_STDLIB_H || HAVE_MALLINFO */
#include "log.h"
#include "memory.h"
|