From c10b848660e22c82da865c18343c76b6684b6b83 Mon Sep 17 00:00:00 2001 From: minskim Date: Sat, 2 Dec 2006 05:06:33 +0000 Subject: [PATCH] Not every platform has malloc.h. Apply a patch from the Quagga CVS. --- net/quagga-devel/distinfo | 3 ++- net/quagga-devel/patches/patch-ab | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net/quagga-devel/patches/patch-ab diff --git a/net/quagga-devel/distinfo b/net/quagga-devel/distinfo index 1f9388fbb567..117c67e5aeb4 100644 --- a/net/quagga-devel/distinfo +++ b/net/quagga-devel/distinfo @@ -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 diff --git a/net/quagga-devel/patches/patch-ab b/net/quagga-devel/patches/patch-ab new file mode 100644 index 000000000000..d55933851f5a --- /dev/null +++ b/net/quagga-devel/patches/patch-ab @@ -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 ++/* malloc.h is generally obsolete, however GNU Libc mallinfo wants it. */ ++#if !defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO)) + #include ++#endif /* !HAVE_STDLIB_H || HAVE_MALLINFO */ + + #include "log.h" + #include "memory.h"