package iproute2 has problems building on recent BSD-derived platforms
authorFlorian Fainelli <florian@openwrt.org>
Fri, 8 Aug 2008 21:49:17 +0000 (21:49 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 8 Aug 2008 21:49:17 +0000 (21:49 +0000)
commit762bf7f823633c01265139d7ff61ab42c4079679
tree04dd11a155dc85ec197af80a0f54d8444edb3789
parent31a9ad1425a15b78becb90306c5a8bdd974aeb51
package iproute2 has problems building on recent BSD-derived platforms
because some programs to be run on the host use malloc.h in an
incompatible way.

package/iproute2/patches/004-darwin_fixes.patch has a fix for Darwin,
however the fix can be made to work on other BSD platforms
by changing the patch as below.

I think a similar approach should work for other BSD-derived platforms,
replacing the
#ifndef __APPLE__
with
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(...)

or perhaps even with just

#ifdef __linux__

if the set of platforms where malloc.h is ok is small or restricted
to just linux

In any case, the patch is below. (#3869)
Signed-off-by: Luigi Rizzo <rizzo@iet.unipi.it>
SVN-Revision: 12249
package/iproute2/patches/004-darwin_fixes.patch