Not every platform has malloc.h. Apply a patch from the Quagga CVS.

This commit is contained in:
minskim 2006-12-02 05:06:33 +00:00
parent d0f4ede502
commit c10b848660
2 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.3 2006/06/05 13:58:54 gdt Exp $
$NetBSD: distinfo,v 1.4 2006/12/02 05:06:33 minskim Exp $
SHA1 (quagga-0.99.4.tar.gz) = eb5c12c6345e7651114c704dd3c945d0c7595c10
RMD160 (quagga-0.99.4.tar.gz) = a0818323c7dc714ed9514cf3cb8110a891b2fa5d
Size (quagga-0.99.4.tar.gz) = 2207774 bytes
SHA1 (patch-aa) = 1f79ffb63837c2e93204906c7ec96373154ced2e
SHA1 (patch-ab) = e6b98d9f0ebbf8ce7ddc1ac6fc70a6da0a5a0234

View file

@ -0,0 +1,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"